Marina Vatkina wrote: > > I didn't suggest to remove the existing @Entity annotation - what I > suggested > was to change the @MappedSuperclass to be an @Entity, *and* make it > *abstract*. > The latter will mean that you'll never get its instances back. > I've tested this, but OpenJPA still has the same error: org.apache.openjpa.persistence.ArgumentException: Could not locate metadata for the class using alias "Article". Registered alias mappings: "{Article=null}" As a comparison, Toplink does not accept this approach at all (@Entity extends @Entity). It requires the superclass to be MappedSuperclass (@Entity extends @MappedSuperclass). So unforntunately this approach seems to be a dead end. -- View this message in context: http://www.nabble.com/Open-JPA-error-Could-not-locate-metadata-for-the-class-using-alias-tf3561516.html#a10155865 Sent from the open-jpa-dev mailing list archive at Nabble.com.
- Re: Open JPA error-Could not locate metadata for the class... tbee
- Re: Open JPA error-Could not locate metadata for the ... Jacek Laskowski
- Re: Open JPA error-Could not locate metadata for the ... Marina Vatkina
- Re: Open JPA error-Could not locate metadata for ... tbee
- Re: Open JPA error-Could not locate metadata ... Marina Vatkina
- Re: Open JPA error-Could not locate metadata ... tbee
- Re: Open JPA error-Could not locate metadata ... Marina Vatkina
- Re: Open JPA error-Could not locate metadata ... tbee
- Re: Open JPA error-Could not locate metadata ... tbee
- Re: Open JPA error-Could not locate metadata ... Marina Vatkina
- Re: Open JPA error-Could not locate metadata ... Craig L Russell
- RE: Open JPA error-Could not locate metadata ... Patrick Linskey
- Re: Open JPA error-Could not locate metadata ... tbee
- RE: Open JPA error-Could not locate metadata ... Patrick Linskey
- RE: Open JPA error-Could not locate metadata ... tbee
- RE: Open JPA error-Could not locate metadata ... Patrick Linskey
- RE: Open JPA error-Could not locate metadata ... tbee
- RE: Open JPA error-Could not locate metadata ... Patrick Linskey
- RE: Open JPA error-Could not locate metadata ... tbee