sorry keepin gin the lsit. On Tue, Aug 11, 2009 at 12:41 PM, Gustavo Pizano <[email protected] > wrote: Ahmm so I can relate Area to itslef? interesting.. well I guess in the java class will be something like \
public Area .... private NSArray <Area> areas... or something like that. *another thing, but in the db I will need 2 tables isn't it? one area and anotherone SubAreas, I hadn't made such a inheritance in a relational world. * G. On Tue, Aug 11, 2009 at 12:38 PM, Stefan Klein <[email protected]>wrote: > Hi Gustavo, > > you need only one entity. > > Area: > area_pk > parent_area_fk > foo > > Now you build a relationship area_pk <->> parent_area_fk. > So each area can have many 'subareas' while one are has only one parent > area. > > Stefan > > > Gustavo Pizano schrieb: > > Hello Im doing an eomodel.. .and I have an entity called Area, and SubArea, > for me an area can have many subareas, but subarea its an area itself also.. > > so its like Area <- >>SubArea. > > Now what are the implications of defyning Area with its properties, and > then SubArea and put as parent Area?... I see that inside Area Entity there > is SubArea Entity also... but I guess this doesn't guaranties me the to-many > relationship between the 2 entities isn't it?do I still have t defying the > relationship? > > > Thanks > > Gustavo > > ------------------------------ > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your > Subscription:http://lists.apple.com/mailman/options/webobjects-dev/stefan.klein%40buero-sde.de > > This email sent to [email protected] > >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
