If I have a bydirectional association
i.e. classA.addClassb(b) and inside the addClassb() method, i say b.setClassA(this), what must I do to delete classB from classA.
The setup I have now is I'm storing instances of classB in a set that is an attribute of classA. When I remove the entry, I'm getting the following exception net.sf.hibernate.PropertyValueException: not-null property references a null or transient value:.
I'm thinking this is due to the bidirectional nature, but I'm not 100% positive. Any help would be appreciated.
Im using Hibernate 2.16
|