title: Why does loading an object with session.get doesn't persist object modifications at the end of session?
body: <p>Maybe I misunderstood the semantics of get and merge in hibernate, but if I do this (in a Spring method controller, so using service and dao layers):</p>
  
  <pre><code>ClassMy a = service.get(234, ClassMy.class) (this loads the object using session.get)
  
  a.setPropertyX("test");
  </code></pre>
  
  <p>this will not result in a automatic update. Instead, if I already had "a" in memory I would do:</p>
  
  <pre><code>a = (ClassMy) service.merge(a);
  a.setPropertyX("test");
  </code></pre>
  
  <p>this results in a update. </p>
  
  <p>Do I have to merge the object after loading it with get? Sounds so strange...</p>