Add parsing of persistence.xml/orm.xml documents in the EE 9 namespace

Description

https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd + https://jakarta.ee/xml/ns/persistence/orm/orm_3_0.xsd can be used by Jakarta EE 9 applications.

The idea is to allow Jakarta EE 9 servers that (bytecode) transform the Hibernate ORM persistence provider to the jakarta class namespace to possibly be able to deploy persistence units that reference the https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd schema.

https://issues.redhat.com/browse/WFLY-13806 is for a similar (JPA container) change for WildFly (https://github.com/wildfly/wildfly/pull/13510 is the pr).

Activity

Sanne GrinoveroOctober 21, 2020 at 10:58 AM

Integrated in master and 5.4 . We’ll backport to 5.3 later.

Sanne GrinoveroOctober 21, 2020 at 10:57 AM

Created to deal with the properties.

Sanne GrinoveroOctober 21, 2020 at 10:38 AM

Thanks for the PR, Scott! ( for future reference)

I’ve amended the title as this change doesn’t deal with properties yet; I assume we’ll track that in a different JIRA.

Scott MarlowOctober 2, 2020 at 3:10 PM

Started changes on https://github.com/scottmarlow/hibernate-orm/pull/new/HHH-14196_jakarta_ee9_xsds for XSD handling. Also added code for Jakarta EE 8 (JPA 2.2) XSDs which might of been missing (not really sure).

 

do you know if org.hibernate.jpamodelgen.xml.JpaDescriptorParser should also reference additional schemas than just JPA 2.1? I'm not sure if that module has a way to know which JPA version schemas to use, but am curious. Thanks!

Scott MarlowAugust 27, 2020 at 10:08 PM

Note that https://jakarta.ee/xml/ns/persistence/orm/orm_3_0.xsd contains an incorrect (documentation) reference to the orm_3_0.xsd in it.

Fixed

Details

Assignee

Reporter

Components

Priority

Created August 27, 2020 at 9:57 PM
Updated November 10, 2020 at 7:15 PM
Resolved November 10, 2020 at 7:15 PM