From 8a7379879bc15d46f7f352fecb91ba11746e42ca Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Thu, 18 Jan 2024 20:15:57 +1300 Subject: [PATCH] Add forRemoval=true for existing Deprecated methods in query beans --- .../src/main/java/io/ebean/typequery/PBaseString.java | 4 ++-- .../src/main/java/io/ebean/typequery/TQRootBean.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ebean-querybean/src/main/java/io/ebean/typequery/PBaseString.java b/ebean-querybean/src/main/java/io/ebean/typequery/PBaseString.java index f94fb267b1..9a5c21f6c8 100644 --- a/ebean-querybean/src/main/java/io/ebean/typequery/PBaseString.java +++ b/ebean-querybean/src/main/java/io/ebean/typequery/PBaseString.java @@ -32,7 +32,7 @@ public abstract class PBaseString extends PBaseComparable { * @param value the equal to bind value * @return the root query bean instance */ - @Deprecated + @Deprecated(forRemoval = true) public final R equalToType(T value) { expr().eq(_name, value); return _root; @@ -46,7 +46,7 @@ public final R equalToType(T value) { * @param value the equal to bind value * @return the root query bean instance */ - @Deprecated + @Deprecated(forRemoval = true) public final R notEqualToType(T value) { expr().ne(_name, value); return _root; diff --git a/ebean-querybean/src/main/java/io/ebean/typequery/TQRootBean.java b/ebean-querybean/src/main/java/io/ebean/typequery/TQRootBean.java index 01f007553b..c2628ffda9 100644 --- a/ebean-querybean/src/main/java/io/ebean/typequery/TQRootBean.java +++ b/ebean-querybean/src/main/java/io/ebean/typequery/TQRootBean.java @@ -1275,7 +1275,7 @@ public R orderBy() { /** * @deprecated migrate to {@link #orderBy()}. */ - @Deprecated(since = "13.19") + @Deprecated(since = "13.19", forRemoval = true) public R order() { return root; } @@ -1295,7 +1295,7 @@ public R orderBy(String orderByClause) { /** * @deprecated migrate to {@link #orderBy(String)} */ - @Deprecated(since = "13.19") + @Deprecated(since = "13.19", forRemoval = true) public R order(String orderByClause) { return orderBy(orderByClause); }