Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HHH-13152 - managed/cached entities and fetching (proposed fix) #2836

Open
wants to merge 4 commits into
base: master
from

Conversation

@sebersole
Copy link
Member

sebersole commented Apr 16, 2019

Proposed fix for HHH-13152

@sebersole sebersole requested review from dreab8 and gbadner Apr 16, 2019
|| influencers.hasEnabledFetchProfiles();
if ( hasActiveInfluencers ) {
// we may need to force initialization of some of the entity's attributes
persister.initializeLazyProperties( entity, event.getSession() );

This comment has been minimized.

@dreab8

dreab8 Apr 17, 2019 Member

not sure but probably we can pass the RootGraphImplementor<?> or the EffectiveEntityGraph to the initializeLazyProperties, this avoids to call again session.getLoadQueryInfluencers(); and
loadQueryInfluencers.getEffectiveEntityGraph()

@dreab8
dreab8 approved these changes Apr 17, 2019
Copy link
Member

dreab8 left a comment

It seems really good to me

@sebersole
Copy link
Member Author

sebersole commented Apr 17, 2019

…inuation for sub-graphs)
@sebersole
Copy link
Member Author

sebersole commented Apr 18, 2019

Just pushed some changes to apply sub-graphs to the process.

At the moment it only works for to-one associations within our limited sub-type sub-graph support.

@gbadner gbadner added the 5.4 label May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.