openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C N Davies" <...@cndavies.com>
Subject Table Per Class
Date Fri, 11 Sep 2009 13:42:18 GMT
Hi,

 

Using OpenJPA 1.2.1

 

I have my base class inheritance set to
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS), what I expected was
that each subsequent subclass would use the same strategy by default. What I
find is that this inheritance strategy only seems to be inherited by the
first subclass but not the subsequence subclasses.  For example:

 

BaseClass  - Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)

 

Class Sub1 extends BaseClass   - table per class functions without the need
to anote the class 

Class Sub2 extends Sub1  -  reverts to using single table unless anoted with
.TABLE_PER_CLASS

 

Is this the expected behaviour because I can't see it either way in the docs
or spec?

 

Thanks 

 

Chris


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message