[ojb-users] mapping multiple objects transparently to a single table
Brought to you by:
thma
From: Andrew G. <Gee...@do...> - 2002-06-14 21:17:23
|
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 |