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