openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tbee <>
Subject Re: Open JPA error-Could not locate metadata for the class using alias
Date Tue, 24 Apr 2007 08:23:32 GMT

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:

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:
Sent from the open-jpa-dev mailing list archive at

View raw message