Skip to main content

Missing version attribute in persistence schema.

7 replies [Last post]
conny
Offline
Joined: 2004-08-03

I'm implementing deployment functionality for EJB 3.0 and I noticed that the schema for persistence.xml (and orm.xml) do not contain a version attribute on the root element. Is that because the spec is not final or is the version attribute not going to be in the persistence schemas?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
conny
Offline
Joined: 2004-08-03

I created the issue but it was closed quickly and they're saying it belongs in https://glassfish.java.net. I get a "Page cannot be displayed" error from that location.

What am I doing wrong?

amyroh
Offline
Joined: 2004-05-06
ludo
Offline
Joined: 2003-06-10

Very good question indeed.. I am curious to know what would be the update strategy when/if the persistence schema changes after java ee 5...
All the other schemas or DTD from J2EE 1.4 have a version.
Marina?

ss141213
Offline
Joined: 2005-03-30

1. The schema available in GlassFish repository is one version behind what is there in proposed final draft. It will be updated soon.

2. In the proposed final draft, the EG wanted to add a version attribute as the schema documentation (section #6.3) says below:

[i]indicate the version of the schema by
using the version element as shown below:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
[/i]

But, the spec does [b]not[/b] actually define the version attribte in the schema. So the spec has to be corrected before it can be used in GlassFish.

-- Sahoo

conny
Offline
Joined: 2004-08-03

So are we expecting the spec to be modified soon to include the version attribute?

I assume that the persistence schema that will be shipped with glassfish will be named persistence_1_0.xsd?

How long can we expect it to take between the time the spec is updated and glassfish is up to date on the schema?

ss141213
Offline
Joined: 2005-03-30

> So are we expecting the spec to be modified soon to
> include the version attribute?

Yes

>
> I assume that the persistence schema that will be
> shipped with glassfish will be named
> persistence_1_0.xsd?
>

Yes

> How long can we expect it to take between the time
> the spec is updated and glassfish is up to date on
> the schema?

Pl file a bug using glassfish.dev.java.net/issues/enter_bug.cgi
if you want to be notified of the change. Assign it to ss141213 (me). You should not have to wait long for this change.

Thanks,
Sahoo

conny
Offline
Joined: 2004-08-03

Thanks... The issue was created.

See https://java-net.dev.java.net/issues/show_bug.cgi?id=204