This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate throwing exception on insert on one-to-many  RSS feed

 
Desiree Rguez.
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have the following DB tables:



One DSNValue can has a list of DSAreas.
These are the mapping files:



And when I create a new DSNValue I hace the following code:



t.commit throws a NullPointerException, but in the hibernate log I can see the INSERT statements an its values and they are ok. For selecting the DB elements this mapping configuration works fine. What can be happening?


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!