This issue has already been resolved as a new improvement to Hibernate 5.0.0.Beta1
, originally it was bundled in an isolated module hibernate-java8
Now it is directly bundled in hibernate-core
, so just make sure that you are using the recent version of it (5.2.X +), in case you are using maven
, it should be like this
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>5.2.10.Final</version>
</dependency>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…