• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate - Getting null exception during delete cascade

 
Shah din sani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have two objects. Offering is parent while OfferingMessage is child. Offering has a list of OfferingMessages. Following is how I am defining my Offering and OfferingMessage classes.

Offering Class


OfferingMessage Class


Issue that I am having here is that when I try to delete Offering object I get a null exception.

Following is the code that I am using for delete (in my DAO).


Please advice what I am missing here.
Thanks in advance for helping me.

I am getting following Exception
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic