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 2010/10/06 22:16:25 UTC
Re: vertical inheritance
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!
Regards,
Gilberto
[1]http://cayenne.apache.org/doc/modeling-vertical-inheritance.html
[2]
http://construtor.googlecode.com/svn/trunk/click-orm-integration/docs/park-er.pdf
[3] http://dl.dropbox.com/u/9093640/objAttributeInspector01.png
[4]
http://code.google.com/p/construtor/source/browse/trunk/click-orm-integration/park-cayenne/src/main/resources/ParkMap.map.xml
--
View this message in context: http://cayenne.195.n3.nabble.com/vertical-inheritance-tp4207p1644921.html
Sent from the Cayenne - User mailing list archive at Nabble.com.
Re: vertical inheritance
Posted by gilbertoca <gi...@gmail.com>.
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.