mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-13312 Fix an invalid condition in new entity graph code
This commit is contained in:
parent
634782fef6
commit
d18b46e1fe
@ -2849,7 +2849,7 @@ protected T perform(Supplier<T> executor) {
|
||||
|
||||
try {
|
||||
if ( graphSemantic != null ) {
|
||||
if ( rootGraph != null ) {
|
||||
if ( rootGraph == null ) {
|
||||
throw new IllegalArgumentException( "Graph semantic specified, but no RootGraph was supplied" );
|
||||
}
|
||||
loadQueryInfluencers.getEffectiveEntityGraph().applyGraph( rootGraph, graphSemantic );
|
||||
@ -3048,7 +3048,7 @@ public List<T> perform(Supplier<List<T>> executor) {
|
||||
|
||||
try {
|
||||
if ( graphSemantic != null ) {
|
||||
if ( rootGraph != null ) {
|
||||
if ( rootGraph == null ) {
|
||||
throw new IllegalArgumentException( "Graph semantic specified, but no RootGraph was supplied" );
|
||||
}
|
||||
loadQueryInfluencers.getEffectiveEntityGraph().applyGraph( rootGraph, graphSemantic );
|
||||
|
Loading…
x
Reference in New Issue
Block a user