saveOrUpdate « Composite « JPA Q&A





1. saveOrUpdate() with composite keys    forum.hibernate.org

There 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 mapping has an unsaved-value setting ...

2. regarding composite id and saveorupdate method    forum.hibernate.org