-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NETBEANS-5472] Bugfix: Updated maven archetype #5516
Conversation
…e 10 webapp to latest bugfix version This version contains the correct java persistence version `3.1` (was `3.0`).
I understand, that this is about the version in <persistence xmlns="https://jakarta.ee/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="3.1"
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_1.xsd"
>
<!-- Define Persistence Unit -->
<persistence-unit name="my_persistence_unit"> </persistence-unit>
</persistence> The issue is the fourth line (I added linebreaks). The schema location points into the void. Try to open This seems to be still in discussion:
From my POV 3.1 is broken. The 3.0 schema can't be applied as it requires a fixed version of |
@pepness @jGauravGupta do you know how current Jakarta EE 10 servers react to such files? Do they just ignore the schema location? |
I see. Actually I was not aware about the situation. I also thought there is a new schema based on the released spec. |
@matthiasblaesing, There is no support for JPA 2.2 and onwards, if you delete the persistence.xml file that was generated when you create the maven project, you can only create a new persistence unit with up to version 2.1. I am currently working on a PR that will give support for JPA 2.2, I will include partial support for JPA 3.0 and JPA 3.1 that will generate correct persistence.xml files. |
@pepness sorry, there is a misunderstanding. What I meant was, that the proposed content of <xsd:attribute name="version" type="persistence:versionType"
fixed="3.0" use="required"/> So if you validate the suggested 3.1 So what I'm interested in how payara, jboss, glassfish and Wildfly handle this situation: Do they fail with 3.1 |
As this is an "issue" on JPA Specification site. I'll close the PR. |
Updated maven archetype to build jakarta ee 10 webapp to latest bugfix version.
This version contains the correct java persistence version
3.1
(was3.0
).This fixes #5472