From 6fb6d7e3add7e457188b5abba4316741c7f443bb Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Tue, 28 Apr 2015 13:48:06 -0700 Subject: [PATCH] HHH-9752 : Deprecate ClassicAvgFunction, ClassicCountFunction, ClassicSumFunction --- .../org/hibernate/dialect/function/ClassicAvgFunction.java | 4 ++++ .../org/hibernate/dialect/function/ClassicCountFunction.java | 3 +++ .../org/hibernate/dialect/function/ClassicSumFunction.java | 2 ++ 3 files changed, 9 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/function/ClassicAvgFunction.java b/hibernate-core/src/main/java/org/hibernate/dialect/function/ClassicAvgFunction.java index cd3b5fdfcb..9757959b04 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/function/ClassicAvgFunction.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/function/ClassicAvgFunction.java @@ -34,7 +34,11 @@ import org.hibernate.type.Type; * Classic AVG sqlfunction that return types as it was done in Hibernate 3.1 * * @author Max Rydahl Andersen + * + * @deprecated Use {@link org.hibernate.dialect.function.StandardAnsiSqlAggregationFunctions.AvgFunction} + * or {@link AvgWithArgumentCastFunction} instead. */ +@Deprecated public class ClassicAvgFunction extends StandardSQLFunction { /** * Constructs a ClassicAvgFunction diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/function/ClassicCountFunction.java b/hibernate-core/src/main/java/org/hibernate/dialect/function/ClassicCountFunction.java index f26fc62cee..32f139c8f8 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/function/ClassicCountFunction.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/function/ClassicCountFunction.java @@ -31,7 +31,10 @@ import org.hibernate.type.Type; * Classic COUNT sqlfunction that return types as it was done in Hibernate 3.1 * * @author Max Rydahl Andersen + * + * @deprecated Use {@link org.hibernate.dialect.function.StandardAnsiSqlAggregationFunctions.CountFunction} instead. */ +@Deprecated public class ClassicCountFunction extends StandardSQLFunction { /** * Constructs a ClassicCountFunction diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/function/ClassicSumFunction.java b/hibernate-core/src/main/java/org/hibernate/dialect/function/ClassicSumFunction.java index 6bfed870de..1a4f8ca056 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/function/ClassicSumFunction.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/function/ClassicSumFunction.java @@ -28,7 +28,9 @@ package org.hibernate.dialect.function; * * @author Max Rydahl Andersen * + * @deprecated Use {@link org.hibernate.dialect.function.StandardAnsiSqlAggregationFunctions.SumFunction} instead. */ +@Deprecated public class ClassicSumFunction extends StandardSQLFunction { /** * Constructs a ClassicSumFunction