Re: [ojb-users] mapping multiple objects transparently to a single table
Brought to you by:
thma
From: Matthew b. <mat...@ya...> - 2002-06-14 21:54:11
|
I don't have the answer offhand (I'm probably the most responsible for multiple objects mapped to a single table right now), but I'll get around to writing a test case for it soon, unless of course you want to write one for me. Once the test case is done, I'll look at fixing it. I'll fix it faster if I have the test case done sooner... hint hint. m Andrew Geery <Gee...@do...> wrote: I was wondering if it is possible to map multiple objects to a single table transparently. For example: Object A maps to table T. Object B contains a reference to object A and also maps to table T. How can I set up the repository.xml file so that when I call broker.store( B ); object A is also stored? The problem I am running into is that the database complains that the id column is specfied more than once in the INSERT statement Can this even be done? If it can, a short example would be wonderful. Thanks Andrew _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ Objectbridge-users mailing list Obj...@li... https://lists.sourceforge.net/lists/listinfo/objectbridge-users --------------------------------- Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup |