Hibernate version: 3 / JBoss 4.0.3
Name and version of the database you are using: Oraclie 9i
Which is the right way to reattach an object to a new session?
I don't want to change the object, but only want to be able to access lazy associations.
I've tried merge() and update(), but both of them will always update the object in database at end of session. If read the FAQ "Hibernate updates an object in the database, when I didn't change anything!", but there are no "is dirty" comments in the log.
What is wrong? How can I find out what is dirty?
Another question: on (desired) updates, Hibernate always updates every column, not just those whose values changed. Is this desired behaviour, or did I do something wrong?
Marcus.
|