I am using JPA and Hibernate and I am trying to understand how the EntityManager\'s merge method identifies a row in database that I want to update. Suppose I have the following