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

Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Peter Wieland
Hi, I try to map two classes Address and PersonAddress (a subclass of Address) using the joined table per sublcass strategy. This is my mapping: class-descriptor class=de.armax.sandbox.entity.Address table=Address field-descriptor autoincrement=true primarykey=true column=adrOID

RE: Problem mapping inheritance hierarchy using joined tables for subclasses

2003-12-04 Thread Plummer, Greg
. Cheers, Greg Plummer -Original Message- From: Peter Wieland [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 4:22 AM To: [EMAIL PROTECTED] Subject: Problem mapping inheritance hierarchy using joined tables for subclasses Hi, I try to map two classes Address and PersonAddress

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
] Subject: Problem mapping inheritance hierarchy using joined tables for subclasses Hi, I try to map two classes Address and PersonAddress (a subclass of Address) using the joined table per sublcass strategy. This is my mapping: class-descriptor class=de.armax.sandbox.entity.Address table

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