This week's book giveaway is in the HTML, CSS and JavaScript forum.
We're giving away four copies of hapi.js in Action and have Matt Harrison on-line!
See this thread for details.
Win a copy of hapi.js in Action this week in the HTML, CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jpa how to fetch namedEntityGraph on detached entity?

 
Rj Ewing
Ranch Hand
Posts: 95
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the best way to do additional work on detached entities?

Some context...

I am currently fetching the user in a Filter for my REST services. In some cases, I need work with some lazy collections on the User entity. What is the best way to do this?

I am currently calling entityManager.merge, and then calling the getCollection method.

UserService:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!