Hi there,
When I'm using saveorupdate() with a class representing a table with composite keys, Hibernate always perform an UPDATE, even where an INSERT is needed
apparently, the saveOrUpdate() method check the keys to see if one of them is null ; or, in this case, none of them are null because they are representing entries from other tables
is there a way to indicate to hibernate to do an INSERT even with keys non-null with saveOrUpdate, or it is needed to manually determinate if we'll use a save() or update() call ?
thanks in advance
|