Why is hibernate-java8 (hibernate 5.x) not showing?

Hibernate 5 and above supports Java8 DateTime Api through the jar "hibernate-java8".
But the MavenRepository shows the message "Deprecated - use hibernate-core instead"), as well as the jibernate-java8 jar header.
<Why is the hibernate-java8 jar called obsolete, although you need to get hibernate support for java8?

maven repository hibernate-java8

+5
source share
1 answer

You can see the Migration Guide for Hibernate. He indicates that

Hibernate 5.2 is built using the Java 8 JDK and will require the Java 8 JRE on (we are exploring whether Java 9 will work). This is a series of consequences:

The hibernate-java8 module has been integrated with the hibernation kernel and Java 8 date and time types are currently supported.

(todo) Java 8 support Optional

(todo) support for other Java 8 features?

Hibernate-java8 module removed; this functionality has been integrated into the hibernate core.

For hibernate-java8 see this ticket for an explanation,

Since it depends on Java 8, and Hibernate still maintains compatibility, a new hibernate-java8 module was added to Java 6 to isolate Java 8 compatibility with these classes. We will put the classes from this module into the hibernate kernel as soon as we start one Java 8.

Since hibernation no longer supports hibernate-java8, and you can see that hibernate-java8 is nothing more than an empty placeholder. Github and JIRA Details .

So, since the functionality has been integrated into hibernate-core; hibernate-java8 is now depreciating.

I hope this is the answer to your inquiries.

+9
source

Source: https://habr.com/ru/post/1257423/


All Articles