1. saveOrUpdate() with composite keys forum.hibernate.orgThere are a range of options available. Hibernate will assume that an instance is an unsaved transient instance if - the identifier property (if existant) is null. - the version property (if existant) is null. - you supply an unsaved-value in metadata for the class, and the value of the identifier property matched - the |
2. regarding composite id and saveorupdate method forum.hibernate.org |