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:
Julien Fourment 2014-04-21 08:57:01 -04:00 committed by Brett Meyer
parent 1a10937ae9
commit 1b41e52397
2 changed files with 2 additions and 2 deletions

View File

@ -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
// a single query root was defined.
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" );
}
}

View File

@ -293,7 +293,7 @@ public class QueryStructure<T> implements Serializable {
}
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;