I am facing some issues with updating the data for a parent child relationship. I have <one-to-many> relationship, now when i try to remove of the child record and update the parent object it gives me no identifier found exception at the child object. Here as it is web layer the retrieval is done in one session and update is done in another session. i have the cascade setting in hbm files as all,delete-orphan. Here one thing is i don't have id in domain the object of child, could this be a problem. I think hibernate should do this by reference.
|