Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add data in hibernate with many one-to-many relationships

 
kumuda mulgund
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a Song class which has one-to-many relationship with other 3 classes - Album,Genre,Login.
These are my POJO classes:



I have tried this method in my service . But it is not working. There aren't any errors either. Please help me.
 
Dave Tolls
Ranch Hand
Posts: 2100
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're not logging the HibernateException so of course you're not seeing any errors.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic