I have a Hibernate question.
I am using SaveUpdate() method to upadate/save an object to db.
I assume that it should know when to update and when to save it based on if i have populated pk in my pojo.
but it doesnt update at all and it is always saving it as a new row in db.
even i tried to test it with
MyObj foundObj = getObjFromDbById(long key);-----------------> so it has primary key populated
HibernateTemplate.saveUpdate(foundObj );
and it saved it again... what is wrong???