How do you request a version of EclipseLink at runtime (plus JPA metadata)?

The question pretty much says it all.

Is there an equivalent for org.hibernate.Version.getVersionString() in EclipseLink?

Why don't you have a portable (JPA) way to request supplier information in general?

+3
source share
2 answers

Never used it, but from Eclipselink javadoc you could try the following class:

org.eclipse.persistence.Version

+6
source

There is a static class and a static method to get this information.

Example: how to print in Java code

 AbstractSessionLog.getLog().log(SessionLog.INFO, DatabaseLogin.getVersion()); 
0
source

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


All Articles