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 clone


> 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 allow an update with a different object, that would
be
>  > nice to have.
>
> Have a look at the BeanUtils utility which lets you copy all attributes
> from one bean to another.  That should nicely solve your problem.
>
> -Dave
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> hibernate-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to