common problem with Hibernate/NHibernate and child IDs

Posted by tyndall on Stack Overflow See other posts from Stack Overflow or by tyndall
Published on 2010-05-07T23:40:24Z Indexed on 2010/05/07 23:48 UTC
Read the original article Hit count: 425

Filed under:
|
|
|

I'm asking both Hibernate and NHibernate groups because I'm thinking this may be a common issue seen on both.

What does it usually mean when you call a saveOrUpdate on a child object and...
1) If it is an insert everything works fine.
2) If it is an update its wiping out the parent ID in the database.

© Stack Overflow or respective owner

Related posts about java

Related posts about hibernate