This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
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

Join table for java @manytomany relationship empty

 
Francis Atore
Greenhorn
Posts: 6
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My casestudyList is coming up empty when I call the waterquality information. I looked at the joined table and it was also empty. I have read the flushing the session helps, but it didnt work for my case. I have also seen examples where setting "" at the method level helps, but I am not sure is this truly solves the problem. I am new to hibernate and Java in general. Anyone have any good ideas? Appreciate any solid inputs!

======================================================================

 
Francis Atore
Greenhorn
Posts: 6
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I persisted the data in my waterquality controller class and it fixed the issue:



Hopefully this solves someone elses problem. If you have some looping issues, change your many to many maping List or Set from



To



 
Knute Snortum
Bartender
Pie
Posts: 2904
62
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a cow (that's a good thing) for reporting back on your solution.
 
Francis Atore
Greenhorn
Posts: 6
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the cow. Hopefully I will have enough to start a herd soon
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic