Re: [Hibernate] updating exiting objects with a new clone

2003-11-02 Thread David Rees
Troy McKinnon wrote: The only way I can see doing this now is to transfer the field values from myItem to fromDatabase. (Note: using the reflect package to do this is fairly trivial - but just more work ) If there was some way to updateSimilar or updateFromClone or similar method that would

Re: [Hibernate] updating exiting objects with a new clone

2003-11-02 Thread Troy McKinnon
I will do that. Just seems like a lot of overhead. Especially on an large dataset with a lot of rows. Troy - Original Message - From: David Rees [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 02, 2003 8:08 PM Subject: Re: [Hibernate] updating exiting objects with a new

Re: [Hibernate] updating exiting objects with a new clone

2003-11-02 Thread Troy McKinnon
Hibernate 'check' if it exists and USE this object as if it had been loaded. Cheers Troy - Original Message - From: Gavin King [EMAIL PROTECTED] To: Troy McKinnon [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, November 02, 2003 8:09 PM Subject: Re: [Hibernate] updating exiting

Re: [Hibernate] updating exiting objects with a new clone

2003-11-02 Thread Gavin King
as if it had been loaded. Cheers Troy - Original Message - From: Gavin King [EMAIL PROTECTED] To: Troy McKinnon [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, November 02, 2003 8:09 PM Subject: Re: [Hibernate] updating exiting objects with a new clone G I hate this. I think