Márk Zalavári (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZjFiNTJmZTRk...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-14082?atlOrigin=eyJpIjoiZjFiNT...
) HHH-14082 (
https://hibernate.atlassian.net/browse/HHH-14082?atlOrigin=eyJpIjoiZjFiNT...
) Hibernate cannot determine it's own version in modular configuration (
https://hibernate.atlassian.net/browse/HHH-14082?atlOrigin=eyJpIjoiZjFiNT...
)
Issue Type: Bug Affects Versions: 5.4.17 Assignee: Unassigned Components: hibernate-core
Created: 19/Jun/2020 07:04 AM Environment: OpenJDK 11.0.7
Spring Boot 2.3.1
Spring 5.2.7
Hibernate 5.4.17 Priority: Minor Reporter: Márk Zalavári (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
When Hibernate is initialized in a modular configuration, the
org.hibernate.Version.getVersionString() method returns the "WORKING" String
instead of the version. ( org.hibernate.annotations.common.Version is working perfectly)
2020-06-19 15:47:47.939 INFO 40280 --- [ main]
o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo
[name: default]
2020-06-19 15:47:47.967 INFO 40280 --- [ main] org.hibernate.Version
: HHH000412: Hibernate ORM core version [WORKING]
2020-06-19 15:47:48.026 INFO 40280 --- [ main]
o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations
{5.1.0.Final}
Currently the Version gets the information via:
Version. class. getPackage().getImplementationVersion()
But in modular mode it should call this instead:
Version. class. getModule().getDescriptor().version()
(I know that's not a possibility for now due to source level 1.8, but maybe in the
future...)
(
https://hibernate.atlassian.net/browse/HHH-14082#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14082#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100130- sha1:5f5b10c )