HHH-9093 - Fixed typo in error message when no implicit selection could
be found Conflicts: hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/CriteriaQueryImpl.java hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/QueryStructure.java
This commit is contained in:
parent
1a10937ae9
commit
1b41e52397
|
@ -306,7 +306,7 @@ public class CriteriaQueryImpl<T> extends AbstractNode implements CriteriaQuery<
|
||||||
// if there is not an explicit selection, there is an *implicit* selection of the root entity provided only
|
// if there is not an explicit selection, there is an *implicit* selection of the root entity provided only
|
||||||
// a single query root was defined.
|
// a single query root was defined.
|
||||||
if ( getSelection() == null && !hasImplicitSelection() ) {
|
if ( getSelection() == null && !hasImplicitSelection() ) {
|
||||||
throw new IllegalStateException( "No explicit selection and an implicit one cold not be determined" );
|
throw new IllegalStateException( "No explicit selection and an implicit one could not be determined" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -293,7 +293,7 @@ public class QueryStructure<T> implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( implicitSelection == null ) {
|
if ( implicitSelection == null ) {
|
||||||
throw new IllegalStateException( "No explicit selection and an implicit one cold not be determined" );
|
throw new IllegalStateException( "No explicit selection and an implicit one could not be determined" );
|
||||||
}
|
}
|
||||||
|
|
||||||
return implicitSelection;
|
return implicitSelection;
|
||||||
|
|
Loading…
Reference in New Issue