Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to query persisted record Using JPA with hibernate provider  RSS feed

 
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: 3974
24
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!