I think this might be a bug. I've also observed it in my system. Objects with valid id's get re-created with new ids.
I am making a new object A to store, and I add B and B->C in a pre-existing persisted relationship, then C will be re-created. I have also noticed that it only happens to references that are not bi-directional. I have yet to try that to see if it fixes it. ( since I removed the setAutostore() call and played with the transaction a bit and it worked) Note, that in my case the objects are not Timestampable. -richard -----Original Message----- From: Techeira, Vincent X -ND [mailto:[EMAIL PROTECTED] Sent: March 12, 2003 6:25 AM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Improving Auto store functionality If the additional object you are storing are already persisted in the database, they should have the same id's and thus you are not re-creating the objects. If they have different id's then you should associate the one in the database to ensure your not re-creating it. Perhaps, I didn't understand you correctly. Could you please send your mapping file and an example. Vincent -----Original Message----- From: Lincoln Spiteri [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 7:35 AM To: [EMAIL PROTECTED] Subject: [castor-dev] Improving Auto store functionality Hi, I have tried to use auto store on an object graph that contains references to objects that are already persisted in the DB. When persisting this object graph the already persisted objects are re-created. Is there a way to stop this? Regards Lincoln ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
