"not-null property references a null or transient value" At Delete
posted 3 years ago
I am able to save the objects in the database, but not delete them.
I have the following classes:
Here are the hibernate mapping
When I try to do
I get the following error:
One fix I found was, if I change the cascade values (in the Action hbm) to "save-update", and then delete each component separately. But I don't want to do that.
I think another solution would be if I can tell hibernate the order to delete the components, but I cannot find how to do this.
Any suggestions would be greatly appreciated.