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

Unable to query persisted record Using JPA with hibernate provider

 
nataraj gootooru
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am using JPA with hibernate provider to manage DB.
In an order first i am persisting user request in the the DB, and i am keeping request id after persisting.

After some flow, i am trying to get persisted results using request id.
During this process, one of the bi-directional relationship is returning null list. Incase If i use the previous session's request id, the bi-directional relationship is working and returning list of child entities.

Please suggest me if any configurational changes required.

Thanks

Nataraj G.
 
Vijitha Kumara
Bartender
Pie
Posts: 3930
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the CodeRanch!

What "request id" are you talking about here? Can you post the code relevant to this?

You may need to read our FAQ entry -> TellTheDetails.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic