aspose file tools*
The moose likes Object Relational Mapping and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark ""not-null property references a null or transient value" At Delete" Watch ""not-null property references a null or transient value" At Delete" New topic
Author

"not-null property references a null or transient value" At Delete

Zain Rizvi
Greenhorn

Joined: Jul 20, 2012
Posts: 5
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.
Thank you
Pablo Abbate
Ranch Hand

Joined: Aug 06, 2012
Posts: 30

Please try with inverse = false and let us know ...


Nissi Group, Posicionamiento Web, Desarrollo de Software, DiseƱo Web
Blog , LinkedIn
Zain Rizvi
Greenhorn

Joined: Jul 20, 2012
Posts: 5
Doing inverse="false" for the sets required me to do

in all 3 classes; Participant, Precondition, and Effect.

But running the application gave me the error

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "not-null property references a null or transient value" At Delete