> -----Original Message-----
> From: Michael Dick [mailto:[email protected]]
> Sent: Wednesday, May 19, 2010 6:55 PM
> To: [email protected]
> Subject: Re: Schema version problem upgrading to JPA 2.0
> 
> On the surface this sounds like Eclipse is getting confused (if I've
> read
> your email correctly it's Eclipse's builder that's confused).
> 
> Have you tried the usual suspected for Eclipse (clean project,
refresh,
> rebuild)?

I don't get the errors in Eclipse.  I'm running "ant" from the command
line outside of Eclipse, and it fails with the schema validation error.
If I temporarily set the "version" value back to "1.0" (which Eclipse
now complains about), that gets past the schema validation error just in
that orm.xml file.

> On Wed, May 19, 2010 at 8:30 PM, KARR, DAVID (ATTSI) <[email protected]>
> wrote:
> 
> > I think I noticed some talk about this before, but I can't find it
in
> > the archives now.
> >
> > I tried to upgrade to version 2.0.0 today.  The upgrade with no
> changes
> > worked fine.  Now I'm trying to modify it to use the small number of
> 2.0
> > features that I'm attempting to use.
> >
> > When I changed the "schemaLocation" attribute to point to the 2.0
xsd
> > (I'm really surprised the namespace didn't change), then Eclipse
> > complained that I had to change the "version" attribute also, which
I
> > did (to 2.0).  I then added several "order-column" elements where I
> was
> > previously using the OpenJPA OrderColumn annotation.  When I
> attempted
> > to build this, I got schema validation errors, claiming that there
> was
> > no "order-column" element (even though Eclipse validates this).  If
I
> > temporarily changed the "version" attribute value back to "1.0",
then
> I
> > could get through that part of the build, even though Eclipse is now
> > complaining.  I haven't attempted to run the app in this state.
> >
> > What am I missing?
> >

Reply via email to