• Post Reply Bookmark Topic Watch Topic
  • New Topic

jpa how to fetch namedEntityGraph on detached entity?  RSS feed

 
Rj Ewing
Ranch Hand
Posts: 120
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!