Hi folks.
What happens when object is loaded in one session, not being modified in web tier (user just pressed Submit without changing any field value), and updated using Session.saveOrUpdate() in another session? Can Hibernate somehow know that object hasn't been change thus never issue UPDATE sql command?
Looking at "net.sf.hibernate.SQL" log category, I can see that UPDATE sql is executed :-(
Same thing is when only one field is changed, and Hibernate seems to execute UDPATE stetement with *all* fields included?!
Or maybe Im missing something to set it properly?
Thanx,
Vjeran
|