You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by gilbertoca <gi...@gmail.com> on 2011/06/14 21:55:38 UTC

Re: vertical inheritance

gilbertoca wrote:
> 
> I know this is an old discussion, but I think cayenne has evoluted since
> than. :)
> 
> I'm trying this method [1] and again it (the cayenne docs) confuses me.
> I've followed it:
> mapping all 3 tables, and creating 1..1 relationship between PERSON and
> subclass tables(NATURAL_PERSON and LEGAL_ENTITY) [2]
> When I try to set subclass-specific attributes as "flattened attributes",
> the relationship aren't present [3].
> Can someone take a look at it[4]? Maybe I've missed something obvious!
> 

Yes! I've missed this note[1]:


> root table ("Table/View" for subclasses is still "BOOK"). [2]
> 



Regards,

Gilberto

[1] http://cayenne.apache.org/doc/modeling-vertical-inheritance.html
[2]
http://dl.dropbox.com/u/9093640/TableViewOfSubClassesMustBeTheRootTable.png

--
View this message in context: http://cayenne.195.n3.nabble.com/vertical-inheritance-tp4207p3064650.html
Sent from the Cayenne - User mailing list archive at Nabble.com.