diff --git a/ebean-postgis-types/pom.xml b/ebean-postgis-types/pom.xml
index e11151efb1..905ba3c8d4 100644
--- a/ebean-postgis-types/pom.xml
+++ b/ebean-postgis-types/pom.xml
@@ -86,7 +86,7 @@
true
- io.ebean.tile:enhancement:14.1.0
+ io.ebean.tile:enhancement:14.2.0
diff --git a/ebean-querybean/pom.xml b/ebean-querybean/pom.xml
index 4b1ec99817..0a55ab8274 100644
--- a/ebean-querybean/pom.xml
+++ b/ebean-querybean/pom.xml
@@ -100,7 +100,7 @@
true
- io.ebean.tile:enhancement:14.1.0
+ io.ebean.tile:enhancement:14.2.0
diff --git a/ebean-querybean/src/main/java/io/ebean/typequery/TQRootBean.java b/ebean-querybean/src/main/java/io/ebean/typequery/QueryBean.java
similarity index 97%
rename from ebean-querybean/src/main/java/io/ebean/typequery/TQRootBean.java
rename to ebean-querybean/src/main/java/io/ebean/typequery/QueryBean.java
index 0c0ef22277..ee0f74ea28 100644
--- a/ebean-querybean/src/main/java/io/ebean/typequery/TQRootBean.java
+++ b/ebean-querybean/src/main/java/io/ebean/typequery/QueryBean.java
@@ -57,7 +57,7 @@
* @param the specific root query bean type (e.g. QCustomer)
*/
@NonNullApi
-public abstract class TQRootBean implements IQueryBean {
+public abstract class QueryBean implements IQueryBean {
/**
* The underlying query.
@@ -88,21 +88,21 @@ public abstract class TQRootBean implements IQueryBean {
/**
* Construct using the type of bean to query on and the default database.
*/
- public TQRootBean(Class beanType) {
+ public QueryBean(Class beanType) {
this(beanType, DB.getDefault());
}
/**
* Construct using the type of bean to query on and a given database.
*/
- public TQRootBean(Class beanType, Database database) {
+ public QueryBean(Class beanType, Database database) {
this(database.find(beanType));
}
/**
* Construct with a transaction.
*/
- protected TQRootBean(Class beanType, Transaction transaction) {
+ protected QueryBean(Class beanType, Transaction transaction) {
this(beanType);
query.usingTransaction(transaction);
}
@@ -110,7 +110,7 @@ protected TQRootBean(Class beanType, Transaction transaction) {
/**
* Construct with a database and transaction.
*/
- protected TQRootBean(Class beanType, Database database, Transaction transaction) {
+ protected QueryBean(Class beanType, Database database, Transaction transaction) {
this(beanType, database);
query.usingTransaction(transaction);
}
@@ -119,7 +119,7 @@ protected TQRootBean(Class beanType, Database database, Transaction transacti
* Construct using a query.
*/
@SuppressWarnings("unchecked")
- public TQRootBean(Query query) {
+ public QueryBean(Query query) {
this.query = query;
this.root = (R) this;
}
@@ -129,13 +129,13 @@ public TQRootBean(Query query) {
* values for select() and fetch().
*/
@SuppressWarnings("unchecked")
- public TQRootBean(boolean aliasDummy) {
+ public QueryBean(boolean aliasDummy) {
this.query = null;
this.root = (R) this;
}
/** Construct for FilterMany */
- protected TQRootBean(ExpressionList filter) {
+ protected QueryBean(ExpressionList filter) {
this.query = null;
this.root = null;
this.whereStack = new ArrayStack<>();
diff --git a/ebean-querybean/src/main/java/io/ebean/typequery/TQAssocBean.java b/ebean-querybean/src/main/java/io/ebean/typequery/TQAssocBean.java
index 36758bee3c..a4ecf27089 100644
--- a/ebean-querybean/src/main/java/io/ebean/typequery/TQAssocBean.java
+++ b/ebean-querybean/src/main/java/io/ebean/typequery/TQAssocBean.java
@@ -46,7 +46,7 @@ public TQAssocBean(String name, R root, String prefix) {
* Eagerly fetch this association fetching all the properties.
*/
public final R fetch() {
- ((TQRootBean) _root).query().fetch(_name);
+ ((QueryBean) _root).query().fetch(_name);
return _root;
}
@@ -54,7 +54,7 @@ public final R fetch() {
* Eagerly fetch this association using a "query join".
*/
public final R fetchQuery() {
- ((TQRootBean) _root).query().fetchQuery(_name);
+ ((QueryBean) _root).query().fetchQuery(_name);
return _root;
}
@@ -63,7 +63,7 @@ public final R fetchQuery() {
* Cache misses are populated via fetchQuery().
*/
public final R fetchCache() {
- ((TQRootBean) _root).query().fetchCache(_name);
+ ((QueryBean) _root).query().fetchCache(_name);
return _root;
}
@@ -71,7 +71,7 @@ public final R fetchCache() {
* Use lazy loading for fetching this association.
*/
public final R fetchLazy() {
- ((TQRootBean) _root).query().fetchLazy(_name);
+ ((QueryBean) _root).query().fetchLazy(_name);
return _root;
}
@@ -79,7 +79,7 @@ public final R fetchLazy() {
* Eagerly fetch this association with the properties specified.
*/
public final R fetch(String properties) {
- ((TQRootBean) _root).query().fetch(_name, properties);
+ ((QueryBean) _root).query().fetch(_name, properties);
return _root;
}
@@ -87,7 +87,7 @@ public final R fetch(String properties) {
* Eagerly fetch this association using a "query join" with the properties specified.
*/
public final R fetchQuery(String properties) {
- ((TQRootBean) _root).query().fetchQuery(_name, properties);
+ ((QueryBean) _root).query().fetchQuery(_name, properties);
return _root;
}
@@ -96,7 +96,7 @@ public final R fetchQuery(String properties) {
* Cache misses are populated via fetchQuery().
*/
public final R fetchCache(String properties) {
- ((TQRootBean) _root).query().fetchCache(_name, properties);
+ ((QueryBean) _root).query().fetchCache(_name, properties);
return _root;
}
@@ -177,7 +177,7 @@ private R fetchNested(FetchGroup nestedGroup, FetchConfig fetchConfig) {
}
private SpiQueryFetch spiQuery() {
- return (SpiQueryFetch) ((TQRootBean) _root).query();
+ return (SpiQueryFetch) ((QueryBean) _root).query();
}
private Set properties(TQProperty, ?>... props) {
diff --git a/ebean-querybean/src/main/java/io/ebean/typequery/TQProperty.java b/ebean-querybean/src/main/java/io/ebean/typequery/TQProperty.java
index 8fbb9c5dc4..7add505cfc 100644
--- a/ebean-querybean/src/main/java/io/ebean/typequery/TQProperty.java
+++ b/ebean-querybean/src/main/java/io/ebean/typequery/TQProperty.java
@@ -41,7 +41,7 @@ public String toString() {
* Internal method to return the underlying expression list.
*/
protected final ExpressionList> expr() {
- return ((TQRootBean, ?>) _root).peekExprList();
+ return ((QueryBean, ?>) _root).peekExprList();
}
/**
diff --git a/ebean-redis/pom.xml b/ebean-redis/pom.xml
index cd3062cf59..d4944464f5 100644
--- a/ebean-redis/pom.xml
+++ b/ebean-redis/pom.xml
@@ -72,7 +72,7 @@
true
- io.ebean.tile:enhancement:14.1.0
+ io.ebean.tile:enhancement:14.2.0
diff --git a/ebean-spring-txn/pom.xml b/ebean-spring-txn/pom.xml
index 41b7bb388d..92cc3714ce 100644
--- a/ebean-spring-txn/pom.xml
+++ b/ebean-spring-txn/pom.xml
@@ -99,7 +99,7 @@
true
- io.ebean.tile:enhancement:14.1.0
+ io.ebean.tile:enhancement:14.2.0
diff --git a/ebean-test/pom.xml b/ebean-test/pom.xml
index ca2790e176..77e0177c48 100644
--- a/ebean-test/pom.xml
+++ b/ebean-test/pom.xml
@@ -309,7 +309,7 @@
true
- io.ebean.tile:enhancement:14.1.0
+ io.ebean.tile:enhancement:14.2.0
diff --git a/kotlin-querybean-generator/src/main/java/io/ebean/querybean/generator/SimpleQueryBeanWriter.java b/kotlin-querybean-generator/src/main/java/io/ebean/querybean/generator/SimpleQueryBeanWriter.java
index 9bc4edbfad..7737d33a31 100644
--- a/kotlin-querybean-generator/src/main/java/io/ebean/querybean/generator/SimpleQueryBeanWriter.java
+++ b/kotlin-querybean-generator/src/main/java/io/ebean/querybean/generator/SimpleQueryBeanWriter.java
@@ -337,7 +337,7 @@ private void writeClass() {
writer.append(" */").eol();
writer.append(Constants.AT_GENERATED).eol();
writer.append(Constants.AT_TYPEQUERYBEAN).eol();
- writer.append("class Q%s : io.ebean.typequery.TQRootBean<%s, Q%s> {", shortName, beanFullName, shortName).eol();
+ writer.append("class Q%s : io.ebean.typequery.QueryBean<%s, Q%s> {", shortName, beanFullName, shortName).eol();
}
writer.eol();
diff --git a/querybean-generator/src/main/java/io/ebean/querybean/generator/SimpleQueryBeanWriter.java b/querybean-generator/src/main/java/io/ebean/querybean/generator/SimpleQueryBeanWriter.java
index dc66eb94c3..d84b06dbed 100644
--- a/querybean-generator/src/main/java/io/ebean/querybean/generator/SimpleQueryBeanWriter.java
+++ b/querybean-generator/src/main/java/io/ebean/querybean/generator/SimpleQueryBeanWriter.java
@@ -225,7 +225,7 @@ private void writeClass() {
writer.append("public final class Q%s {", shortName).eol();
} else {
writer.append(Constants.AT_TYPEQUERYBEAN).eol();
- writer.append("public final class Q%s extends io.ebean.typequery.TQRootBean<%s,Q%s> {", shortName, beanFullName, shortName).eol();
+ writer.append("public final class Q%s extends io.ebean.typequery.QueryBean<%s,Q%s> {", shortName, beanFullName, shortName).eol();
}
writer.eol();
}
diff --git a/tests/test-java16/pom.xml b/tests/test-java16/pom.xml
index 7cd850295b..976daf9c88 100644
--- a/tests/test-java16/pom.xml
+++ b/tests/test-java16/pom.xml
@@ -52,7 +52,7 @@
true
- io.ebean.tile:enhancement:14.1.0
+ io.ebean.tile:enhancement:14.2.0