diff --git a/hibernate-core/src/main/java/org/hibernate/criterion/AliasedProjection.java b/hibernate-core/src/main/java/org/hibernate/criterion/AliasedProjection.java index 2c3b565ee6..20d6af7634 100755 --- a/hibernate-core/src/main/java/org/hibernate/criterion/AliasedProjection.java +++ b/hibernate-core/src/main/java/org/hibernate/criterion/AliasedProjection.java @@ -49,8 +49,7 @@ public class AliasedProjection implements EnhancedProjection { return projection.toSqlString(criteria, position, criteriaQuery); } - public String toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery) - throws HibernateException { + public String toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery) { return projection.toGroupSqlString(criteria, criteriaQuery); } diff --git a/hibernate-core/src/main/java/org/hibernate/criterion/SimpleProjection.java b/hibernate-core/src/main/java/org/hibernate/criterion/SimpleProjection.java index 2dcb965f6a..b9a9062f3b 100755 --- a/hibernate-core/src/main/java/org/hibernate/criterion/SimpleProjection.java +++ b/hibernate-core/src/main/java/org/hibernate/criterion/SimpleProjection.java @@ -24,7 +24,6 @@ */ package org.hibernate.criterion; import org.hibernate.Criteria; -import org.hibernate.HibernateException; import org.hibernate.type.Type; @@ -70,8 +69,7 @@ public abstract class SimpleProjection implements EnhancedProjection { return getColumnAliases( alias, loc ); } - public Type[] getTypes(String alias, Criteria criteria, CriteriaQuery criteriaQuery) - throws HibernateException { + public Type[] getTypes(String alias, Criteria criteria, CriteriaQuery criteriaQuery) { return null; } @@ -102,8 +100,7 @@ public abstract class SimpleProjection implements EnhancedProjection { return new String[1]; } - public String toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery) - throws HibernateException { + public String toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery) { throw new UnsupportedOperationException("not a grouping projection"); }