What is the proper way to re-attach detached objects in Hibernate?