EJB-447 : Implement JPA 2.0 criteria apis (revert to strict method sigs)

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17250 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2009-08-06 18:39:33 +00:00
parent 5d08386293
commit f6665eccba

View File

@ -549,28 +549,28 @@ public <T> Expression<T> literal(T value) {
/**
* {@inheritDoc}
*/
public <N extends Number> AggregationFunction.AVG avg(Expression<N> x) {
public <N extends Number> Expression<Double> avg(Expression<N> x) {
return new AggregationFunction.AVG( this, x );
}
/**
* {@inheritDoc}
*/
public <N extends Number> AggregationFunction.SUM<N> sum(Expression<N> x) {
public <N extends Number> Expression<N> sum(Expression<N> x) {
return new AggregationFunction.SUM<N>( this, x );
}
/**
* {@inheritDoc}
*/
public <N extends Number> AggregationFunction.MAX<N> max(Expression<N> x) {
public <N extends Number> Expression<N> max(Expression<N> x) {
return new AggregationFunction.MAX<N>( this, x );
}
/**
* {@inheritDoc}
*/
public <N extends Number> AggregationFunction.MIN<N> min(Expression<N> x) {
public <N extends Number> Expression<N> min(Expression<N> x) {
return new AggregationFunction.MIN<N>( this, x );
}