Archive For 18. September 2015

LocalDateTime and JPA

By |

Today I saw some SQL warnings¬†in our developement server logs: 10:09:23,432 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (EE-ManagedExecutorService-default-Thread-10) SQL Warning Code: 1292, SQLState: 22007 10:09:23,432 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (EE-ManagedExecutorService-default-Thread-10) Incorrect datetime value: ‘\xAC\xED\x00\x05sr\x00\x0Djava.time.Ser\x95]\x84\xBA\x1B”H\xB2\x0C\x00\x00xpw\x0E \x05\x00\x00\x07\xE0\x04\x04\x0A\x09\x17\x19s\x’ for column ‘valid_time’ at row 1 In our case this warning was caused by the missing support of the new java 8 java.time API in JPA…

Read more »