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 Fri, 20 Apr 2007 20:58:44 GMT

> How can you define relationships in the mapped superclass that are
> in terms of the entities?

Quite simple:

class Article extends Article2

class Article2
  private Manufacturer; // note: not Manufacturer2!!

> You can always change the annotation from @MappedSuperclass to an @Entity
> and 
> make the class abstract.

I do not believe that will work. Aim of the game is that the class returned
by queries, etc, must be the class containing all the business logic. So
AFAIK that must be the @Entity. That class must extended a class that
contains the reversed engineered mappings.

> They might, but that would be beyond the spec and as such not a portable
> solution.

If this is beyond the spec: what is @MappedSuperclass intended for?

View this message in context:
Sent from the open-jpa-dev mailing list archive at

View raw message