Hi!
I'm trying to save a
new persistent object, wich contains a map of children objects. So I create te parent object, I assign the children to it's map, and when I save the parent object, I get an exception:
Code:
Hibernate: insert into AllotmentChart (contract) values (?)
Hibernate: update AllotmentChartData set chartData=? where contract=? and chart=? and year=?
31 [main] ERROR net.sf.hibernate.impl.SessionImpl - Could not synchronize database state with session
net.sf.hibernate.HibernateException: SQL insert, update or delete failed (row not found)
... It is saving ok the parent object (AllotmentChart )... but it is trying to update the children objects (AllotmentChart Data).
So I was wondering why it