• 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
Sheriff
Posts: 3326
84
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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!