From 1b41e5239797cfed7e5db45d9f9cca18d4dd3489 Mon Sep 17 00:00:00 2001 From: Julien Fourment Date: Mon, 21 Apr 2014 08:57:01 -0400 Subject: [PATCH] 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 --- .../main/java/org/hibernate/ejb/criteria/CriteriaQueryImpl.java | 2 +- .../main/java/org/hibernate/ejb/criteria/QueryStructure.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;