From 69c9950b398ee86f91d8ba34c32b25eeeb78ab6e Mon Sep 17 00:00:00 2001 From: Julien Fourment Date: Fri, 28 Mar 2014 17:59:49 +0100 Subject: [PATCH] HHH-9093 - Fixed typo in error message when no implicit selection could be found --- .../main/java/org/hibernate/jpa/criteria/CriteriaQueryImpl.java | 2 +- .../main/java/org/hibernate/jpa/criteria/QueryStructure.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/CriteriaQueryImpl.java b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/CriteriaQueryImpl.java index f5bec11a4a..b8045cfe5e 100755 --- a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/CriteriaQueryImpl.java +++ b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/CriteriaQueryImpl.java @@ -276,7 +276,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/jpa/criteria/QueryStructure.java b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/QueryStructure.java index 98a158771e..5f6325f1a4 100644 --- a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/QueryStructure.java +++ b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/QueryStructure.java @@ -297,7 +297,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;