Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0.5
Hello,
I am fairly new to hibernate and I'm trying to understand the difference between session.get() and session.load(). I ask this because I was using session.get() to retrieve a persistant object in my web application. I updated a field in the persistant object and called a session.save(). This caused a hangup in hibernate and my database. This only occurs if I retrieve the object via session.get() and not session.load(). This also brings me to the next question, what is the difference between using session.save() and session.update() for performing updates. Is there a best practices for using sesion.load() vs session.get() and session.save() vs session.update().
Thanks.
Adam