Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate - Getting null exception during delete cascade  RSS feed

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

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
Boost this thread!