Hello OpenJPA users.
Ich have the following Class hierarchie and want to define the id (with
@GeneratedValue(strategy=GenerationType.IDENTITY)) in the parent class:
Base <- @MappedSuperclass - defines an @Id-Field
/ \
A B <- @Entity
Now OpenJPA uses the same identity range for all thos objects, even if
the @Id-Field is not in an @Entity-Class but in a @MappedSuperclass, and
as such does not have a database equivalent.
Expected behaviour is (and this is because the id fields get all mapped
in their own tables) that OpenJPA sees the fields of the mapped
superclass as fields of the derived entites (in fact, the superclass in
not an entity at all) without any corellation between them.
Is this a bug or intentional behavour? Do i really have to define the
field in the derived classes?
Greetings,
Daniel Migowski