• 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
Posts: 3954
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!