Re: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-05 Thread Jakob Braeuchi
hi peter, imo this is on the to-do-list. as a workaround you can still use extents and super-references but you should take care that the primary key is UNIQUE within the class hierarchy. for further details hava look at the thread: Extents and the various inheritance hierarchy mappings in

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Plummer, Greg
Hi Peter, You might want to try declaring PersonAddress as an extend in the class-descriptor for Address (see the Advanced OR Mapping Tutorial on the website). I haven't tried this myself, but I was reading that section of the tutorial last night and I think an extent might solve your problem.

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Gelhar, Wallace Joseph
: Thursday, December 04, 2003 9:23 AM To: [EMAIL PROTECTED] Subject: RE: Problem mapping inheritance hierarchy using joined tables for subclasses Try refresh=false on the super reference. Does not work either. I tried refresh=false auto-retrieve=false auto-delete=false auto-update

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
Well, that's what I tried resulting in a StackOverflow error. I guess it has to do with the auto-update, auto-delete and auto-retrieve attributes of the super reference-descriptor in the subclass. Could anyone tell what settings for those attribute are needed/possible for a correct mapping of

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Gelhar, Wallace Joseph
Hi Peter, Try refresh=false on the super reference. Wally -Original Message- From: Peter Wieland [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 8:50 AM To: [EMAIL PROTECTED] Subject: RE: Problem mapping inheritance hierarchy using joined tables for subclasses Well

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
Try refresh=false on the super reference. Does not work either. I tried refresh=false auto-retrieve=false auto-delete=false auto-update=false on the super reference. But I stell get the StackOverflowError when querying:

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Gelhar, Wallace Joseph
Hi Peter, You will need to add PersonAddress as an Extent of Address if you want PersonAddress to be in the seach domain of a query for class Address. Wally -Original Message- From: Peter Wieland [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 4:22 AM To: [EMAIL PROTECTED]

Re: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Jakob Braeuchi
hi peter, you could try to define an extent in classdescriptor of Address pointing to PersonAddress. BUT the problem is that extents and super-references do not go together well. you may end up with instances of the wrong class. the support for mapping one class to multiple tables needs

Re: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
hi peter, you could try to define an extent in classdescriptor of Address pointing to PersonAddress. BUT the problem is that extents and super-references do not go together well. you may end up with instances of the wrong class. the support for mapping one class to multiple tables needs