Хранение DateTime JPA в Postgresql - PullRequest
0 голосов
/ 07 мая 2018

Почему столбцы создаются как тип 'bytea' для DateTime в базе данных? Как я могу заставить JPA создать правильный тип столбца для DateTime?

Entitiy

DateTime expiresAt;
DateTime createdAt;

application.properties

spring.jpa.properties.jadira.usertype.autoRegisterUserTypes = true

pom.xml

   <dependency>
      <groupId>joda-time</groupId>
      <artifactId>joda-time</artifactId>
      <version>2.9.9</version>
   </dependency>
   <dependency>
      <groupId>org.jadira.usertype</groupId>
      <artifactId>usertype.core</artifactId>
   </dependency>
...