openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Davies (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-1299) TablePerClass only inherited by the first subclass
Date Mon, 14 Sep 2009 17:38:58 GMT
TablePerClass only inherited by the first subclass
--------------------------------------------------

                 Key: OPENJPA-1299
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1299
             Project: OpenJPA
          Issue Type: Bug
          Components: jpa
    Affects Versions: 1.2.1
         Environment: Windows Vista x64, MySQL
            Reporter: Christopher Davies


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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message