• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fetching a reference in an entity which is no longer managed

 
Moses Marfo
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Condition
Entity A reference Entity B and the Fetch type for B is LAZY.

The question is will I be able to access entity B(A.getB()) on the client side where entity A is detached from the persistent context
or I have to set the fetch type to EAGER to do this?
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic