Skip to content
This repository was archived by the owner on Oct 13, 2020. It is now read-only.

Commit 6535e7d

Browse files
committed
#62 - Refactor internals - TQRootBean constructor sets root ... meaning we can
simplify enhancement
1 parent 821650c commit 6535e7d

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>io.ebean</groupId>
66
<artifactId>ebean-querybean</artifactId>
7-
<version>11.38.2-SNAPSHOT</version>
7+
<version>11.39.1-SNAPSHOT</version>
88

99
<parent>
1010
<groupId>org.avaje</groupId>
@@ -30,7 +30,7 @@
3030
<dependency>
3131
<groupId>io.ebean</groupId>
3232
<artifactId>querybean-generator</artifactId>
33-
<version>11.37.1</version>
33+
<version>11.38.1</version>
3434
<scope>provided</scope>
3535
</dependency>
3636

@@ -86,7 +86,7 @@
8686
<extensions>true</extensions>
8787
<configuration>
8888
<tiles>
89-
<tile>io.ebean.tile:enhancement:7.5</tile>
89+
<tile>io.ebean.tile:enhancement:11.38.1</tile>
9090
</tiles>
9191
</configuration>
9292
</plugin>

src/main/java/io/ebean/typequery/TQRootBean.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ public TQRootBean(Class<T> beanType, Database database) {
138138
/**
139139
* Construct using a query.
140140
*/
141+
@SuppressWarnings("unchecked")
141142
public TQRootBean(Query<T> query) {
142143
this.query = query;
144+
this.root = (R)this;
143145
}
144146

145147
/**

src/main/java/io/ebean/typequery/TypeQueryBean.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@
1515
@Retention(RetentionPolicy.RUNTIME)
1616
public @interface TypeQueryBean {
1717

18+
/**
19+
* The version description for the query bean.
20+
*/
21+
String value() default "v0";
1822
}

0 commit comments

Comments
 (0)