title: Hibernate read only session - updating entities
body: <p>We have set all our sessions to read only by calling <code>setDefaultReadOnly(true)</code>. However our updates no longer work even after we explicitly call <code>session.update(entity)</code>. I can see why this is happening, hibernate does not know that this entity is dirty.</p>
  
  <p>My question is, how can I tell hibernate that I have made changes to this entity which need to be sync'd back? I tried merging the entity with <code>session.merge(entity)</code> but that didn't work.</p>