avoid declaring unthrown exception
This commit is contained in:
parent
ebd78e9bb1
commit
40146b2920
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue