[hibernate-issues] [JIRA] (HHH-13924) Hibernate also must scan for persistence.xml in module-path if Java 9+

P (JIRA) jira at hibernate.atlassian.net
Thu Apr 2 03:39:25 EDT 2020


P ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Aed8a9f32-e1de-429d-b17a-fb86b807af6d ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMDE3N2JjNDU1M2M5NDUxZDhhNDY4N2IxNzMyMGY0NjAiLCJwIjoiaiJ9 ) / New Feature ( https://hibernate.atlassian.net/browse/HHH-13924?atlOrigin=eyJpIjoiMDE3N2JjNDU1M2M5NDUxZDhhNDY4N2IxNzMyMGY0NjAiLCJwIjoiaiJ9 ) HHH-13924 ( https://hibernate.atlassian.net/browse/HHH-13924?atlOrigin=eyJpIjoiMDE3N2JjNDU1M2M5NDUxZDhhNDY4N2IxNzMyMGY0NjAiLCJwIjoiaiJ9 ) Hibernate also must scan for persistence.xml in module-path if Java 9+ ( https://hibernate.atlassian.net/browse/HHH-13924?atlOrigin=eyJpIjoiMDE3N2JjNDU1M2M5NDUxZDhhNDY4N2IxNzMyMGY0NjAiLCJwIjoiaiJ9 )

Issue Type: New Feature Affects Versions: 5.4.13 Assignee: Unassigned Components: hibernate-core Created: 02/Apr/2020 00:39 AM Priority: Major Reporter: P ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Aed8a9f32-e1de-429d-b17a-fb86b807af6d )

JPMS appeared in Java 9, now Java 14 is available. Starting from Java 9 we have two types of path:
– class-path and --module-path. If JPMS is used in application then, as a rule, no class-path is used.

So I suggest to add scanning for `persistence.xml` also in module-path. Although according to JPA specs persistence.xml file has to be located in the META-INF directory in the classpath, all we know that there was no JPMS when JPA specs was written.

( https://hibernate.atlassian.net/browse/HHH-13924#add-comment?atlOrigin=eyJpIjoiMDE3N2JjNDU1M2M5NDUxZDhhNDY4N2IxNzMyMGY0NjAiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13924#add-comment?atlOrigin=eyJpIjoiMDE3N2JjNDU1M2M5NDUxZDhhNDY4N2IxNzMyMGY0NjAiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100123- sha1:26275c0 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200402/5577aa58/attachment.html 


More information about the hibernate-issues mailing list