mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-16651 ooops, fix condition on affected-by
This commit is contained in:
parent
c2ceb4c279
commit
97b653aaec
@ -32,17 +32,22 @@ default boolean isAffectedByInfluencers(LoadQueryInfluencers influencers) {
|
||||
return isAffectedByEntityGraph( influencers )
|
||||
|| isAffectedByEnabledFetchProfiles( influencers )
|
||||
|| isAffectedByEnabledFilters( influencers )
|
||||
|| influencers.getBatchSize() != getBatchSize();
|
||||
|| isAffectedByBatchSize( influencers );
|
||||
}
|
||||
|
||||
default boolean isNotAffectedByInfluencers(LoadQueryInfluencers influencers) {
|
||||
return !isAffectedByEntityGraph( influencers )
|
||||
&& !isAffectedByEnabledFetchProfiles( influencers )
|
||||
&& !isAffectedByEnabledFilters( influencers )
|
||||
&& influencers.getBatchSize() == getBatchSize()
|
||||
&& !isAffectedByBatchSize( influencers )
|
||||
&& influencers.getEnabledCascadingFetchProfile() == null;
|
||||
}
|
||||
|
||||
private boolean isAffectedByBatchSize(LoadQueryInfluencers influencers) {
|
||||
return influencers.getBatchSize() > 0
|
||||
&& influencers.getBatchSize() != getBatchSize();
|
||||
}
|
||||
|
||||
int getBatchSize();
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user