postgres上的Hibernate 5 java.time问题

时间:2016-11-07 22:09:30

标签: postgresql hibernate jodatime

在postgresql 8.2中使用hibernate 5;在定义为timestamp(6)的列上我试图映射到

@Column(name = "LAST_UPDATED_DATE")
private Instant lastUpdatedDate;

但似乎冬眠并不喜欢什么。我得到的例外是:

  由引起的:java.io.StreamCorruptedException:无效的流标头:   32303135 at   java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:808)     在java.io.ObjectInputStream。(ObjectInputStream.java:301)at   org.hibernate.internal.util.SerializationHelper $ CustomObjectInputStream。(SerializationHelper.java:309)     在   org.hibernate.internal.util.SerializationHelper $ CustomObjectInputStream。(SerializationHelper.java:299)     在   org.hibernate.internal.util.SerializationHelper.doDeserialize(SerializationHelper.java:218)     ......还有95个

无法找出问题所在

0 个答案:

没有答案