diff --git a/hibernate-entitymanager/src/main/java/org/hibernate/ejb/criteria/CriteriaQueryImpl.java b/hibernate-entitymanager/src/main/java/org/hibernate/ejb/criteria/CriteriaQueryImpl.java index 1b6a93465b..e6124c18b4 100755 --- a/hibernate-entitymanager/src/main/java/org/hibernate/ejb/criteria/CriteriaQueryImpl.java +++ b/hibernate-entitymanager/src/main/java/org/hibernate/ejb/criteria/CriteriaQueryImpl.java @@ -306,7 +306,7 @@ public class CriteriaQueryImpl 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" ); } } diff --git a/hibernate-entitymanager/src/main/java/org/hibernate/ejb/criteria/QueryStructure.java b/hibernate-entitymanager/src/main/java/org/hibernate/ejb/criteria/QueryStructure.java index 6911f3fca6..853a8d2813 100644 --- a/hibernate-entitymanager/src/main/java/org/hibernate/ejb/criteria/QueryStructure.java +++ b/hibernate-entitymanager/src/main/java/org/hibernate/ejb/criteria/QueryStructure.java @@ -293,7 +293,7 @@ public class QueryStructure 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;