You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Donald Woods <dw...@apache.org> on 2009/09/14 19:00:00 UTC

Re: Table Per Class

Definitely worth opening a JIRA, so we don't forget to either doc or fix 
it for 2.0.


-Donald


C N Davies wrote:
> 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
> 
> 

RE: Table Per Class

Posted by Michael Dick <mi...@gmail.com>.
Looks like  http://issues.apache.org/jira/browse/OPENJPA-1299 OPENJPA-1299 

-mike 


J Grassel wrote:
> 
> What's the number of the JIRA?
> 
> 
> crispyoz wrote:
>> 
>> I submitted a JIRA now.
>> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/Table-Per-Class-tp3625882p3695528.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

RE: Table Per Class

Posted by J Grassel <fy...@gmail.com>.
What's the number of the JIRA?


crispyoz wrote:
> 
> I submitted a JIRA now.
> 

-- 
View this message in context: http://n2.nabble.com/Table-Per-Class-tp3625882p3694090.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

RE: Table Per Class

Posted by C N Davies <cn...@cndavies.com>.
I submitted a JIRA now.

-----Original Message-----
From: Donald Woods [mailto:dwoods@apache.org] 
Sent: Tuesday, 15 September 2009 1:00 AM
To: users@openjpa.apache.org
Subject: Re: Table Per Class

Definitely worth opening a JIRA, so we don't forget to either doc or fix 
it for 2.0.


-Donald


C N Davies wrote:
> 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
> 
>