Unproxy child entities #2636
Unanswered
CSharpBender
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm using lazy loading and batch-size to populate specific properties by visiting them.
Once I'm done I want to get rid of the proxy objects so that I don't get to load more than I need or an exception. How can I achieve this?
I've tried with Unproxy but it doesn't work:
session.GetSessionImplementation().PersistenceContext.Unproxy(obj)
I've noticed that for One2Many a
PersistentGenericBag
is used and the One2One relations are loaded automatically although I'm not visiting those properties. Is there something I can do about this?Beta Was this translation helpful? Give feedback.
All reactions