Hey,
I have this code:
Code:
Session session = sessionFactory.openSession();
Transaction tx = session.beginTransaction();
UserVO user = (UserVO) session.load(UserVO.class, id);
user.setMail("test@test.com");
tx.commit();
session.close();
I expected Hibernate to only update the mail column but when I saw the log I noticed that it update all the colums:
Code:
Hibernate: select id from UserVO where id =?
Hibernate: update UserVO set name=?, mail=?, age=?, country=? where id=?
Did I do something wrong? Or this is the behavior of Hibernate?
Avi