cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gilbertoca <gilbert...@gmail.com>
Subject Re: vertical inheritance
Date Tue, 14 Jun 2011 19:55:38 GMT

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.

Mime
View raw message