Hi,
I got this problem with casading insert I am using bidirectional relationship in every parent child relationship.
All the mapping and relationship has been created as per the need. The problem is when I try to insert it gives me following error.
 

net.sf.hibernate.HibernateException: Another object was associated with this id (the object with the given id was already loaded): [org.presci.Kitten#0]

at net.sf.hibernate.impl.SessionImpl.doUpdate(SessionImpl.java:1294)

at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1218)

at net.sf.hibernate.engine.Cascades$3.cascade(Cascades.java:81)

at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:238)

at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:272)

at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:306)

at net.sf.hibernate.impl.SessionImpl.doUpdate(SessionImpl.java:1312)

at net.sf.hibernate.impl.SessionImpl.update(SessionImpl.java:1171)

at org.presci.CatImpl.add(CatImpl.java:62)

at org.presci.CatImpl.main(CatImpl.java:85)

Can anyone help
regards
prasad chandrasekaran

Reply via email to