phanivas wrote:
You are wonderful!!!
It really works. Thanks a lot. I have been scratching my head on this for two days now.
If possible can you explain the effect of having inverse="true".
Thanks once again.
regards
Phani
Hopefully one of the Hibernate guys will correct me if I'm wrong but I think it tells hibernate to look at the other end of the association to determine the relationship in Java.
In your case, it says "Facilitystatefields doesn't control the relationship, Facility does."
Since you cleared the set and essentially deleted the relationship, hibernate should delete the Facilitystatefields.