Expert |
|
Joined: Fri Aug 19, 2005 2:11 pm Posts: 628 Location: Cincinnati
|
I haven't seen anything so far as best cloning practices go and any specifics with hibernate. Just be careful with Sessions and primary keys as cloning objects is an easy way to get StaleStateExceptions and the likes :)
Best way for comparing 2 objects is implementing a good .equals method that exactly mimcs what you want.
_________________ Chris
If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.
|
|