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.

Reply via email to