Skip to content

Commit a96734a

Browse files
authored
Merge pull request #4 from ebean-orm/feature/3-update-for-16
#3 Update to support version 16.1.0 and higher
2 parents 277e533 + 53350af commit a96734a

File tree

10 files changed

+23
-23
lines changed

10 files changed

+23
-23
lines changed

ebean-autotune/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<dependency>
1717
<groupId>io.ebean</groupId>
1818
<artifactId>ebean-core</artifactId>
19-
<version>14.0.0</version>
19+
<version>16.1.0</version>
2020
<scope>provided</scope>
2121
</dependency>
2222

@@ -52,21 +52,21 @@
5252
<dependency>
5353
<groupId>io.ebean</groupId>
5454
<artifactId>ebean-ddl-generator</artifactId>
55-
<version>14.0.0</version>
55+
<version>16.1.0</version>
5656
<scope>test</scope>
5757
</dependency>
5858

5959
<dependency>
6060
<groupId>io.avaje</groupId>
6161
<artifactId>junit</artifactId>
62-
<version>1.4</version>
62+
<version>1.6</version>
6363
<scope>test</scope>
6464
</dependency>
6565

6666
<dependency>
6767
<groupId>io.ebean</groupId>
6868
<artifactId>ebean-platform-h2</artifactId>
69-
<version>14.0.0</version>
69+
<version>16.1.0</version>
7070
<scope>test</scope>
7171
</dependency>
7272

ebean-autotune/src/main/java/io/ebeaninternal/server/autotune/service/TunedQueryInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public boolean tuneQuery(SpiQuery<?> query) {
5252
if (query.isDetailEmpty()) {
5353
tuned = true;
5454
// tune by 'replacement'
55-
query.setDetail(tunedDetail.copy());
55+
query.setDetail(tunedDetail.copy(null));
5656
} else {
5757
// tune by 'addition'
5858
tuned = query.tuneFetchProperties(tunedDetail);

ebean-autotune/src/test/java/org/tests/autofetch/MainAutoQueryTune1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void tuneJoin() {
2323
.where()
2424
.eq("status", Order.Status.NEW)
2525
.eq("customer.name", "Rob")
26-
.order().asc("id")
26+
.orderBy().asc("id")
2727
.findList();
2828

2929
for (Order order : list) {

ebean-csv-reader/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,28 @@
1414
<dependency>
1515
<groupId>io.ebean</groupId>
1616
<artifactId>ebean-api</artifactId>
17-
<version>14.0.0</version>
17+
<version>16.1.0</version>
1818
<scope>provided</scope>
1919
</dependency>
2020

2121
<dependency>
2222
<groupId>io.ebean</groupId>
2323
<artifactId>ebean-core</artifactId>
24-
<version>14.0.0</version>
24+
<version>16.1.0</version>
2525
<scope>provided</scope>
2626
</dependency>
2727

2828
<dependency>
2929
<groupId>io.ebean</groupId>
3030
<artifactId>ebean-test</artifactId>
31-
<version>14.0.0</version>
31+
<version>16.1.0</version>
3232
<scope>test</scope>
3333
</dependency>
3434

3535
<dependency>
3636
<groupId>io.avaje</groupId>
3737
<artifactId>junit</artifactId>
38-
<version>1.4</version>
38+
<version>1.6</version>
3939
<scope>test</scope>
4040
</dependency>
4141

ebean-externalmapping-xml/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,28 +68,28 @@
6868
<dependency>
6969
<groupId>io.ebean</groupId>
7070
<artifactId>ebean-platform-h2</artifactId>
71-
<version>14.0.0</version>
71+
<version>16.1.0</version>
7272
<scope>test</scope>
7373
</dependency>
7474

7575
<dependency>
7676
<groupId>io.ebean</groupId>
7777
<artifactId>ebean-core</artifactId>
78-
<version>14.0.0</version>
78+
<version>16.1.0</version>
7979
<scope>test</scope>
8080
</dependency>
8181

8282
<dependency>
8383
<groupId>io.ebean</groupId>
8484
<artifactId>ebean-ddl-generator</artifactId>
85-
<version>14.0.0</version>
85+
<version>16.1.0</version>
8686
<scope>test</scope>
8787
</dependency>
8888

8989
<dependency>
9090
<groupId>io.avaje</groupId>
9191
<artifactId>junit</artifactId>
92-
<version>1.4</version>
92+
<version>1.6</version>
9393
<scope>test</scope>
9494
</dependency>
9595

ebean-externalmapping-xml/src/test/java/org/tests/model/basic/test/NamedLocalAndExternalTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void namedQuery() {
3434
public void namedQuery_withStatus() {
3535

3636
Query<Customer> name = server().createNamedQuery(Customer.class, "withStatus");
37-
name.order().clear().asc("status");
37+
name.orderBy().clear().asc("status");
3838
name.findList();
3939

4040
assertThat(sqlOf(name)).contains("select t0.id, t0.name, t0.status from o_customer t0 order by t0.status");

ebean-externalmapping-xml/src/test/java/org/tests/model/basic/test/OrderAggregateNamedRawSqlTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void testNamedRawSql_with_extraPredicates() {
3434
query
3535
.where().gt("order.id", 1)
3636
.having().gt("totalItems", 1)
37-
.order().desc("totalAmount")
37+
.orderBy().desc("totalAmount")
3838
.findList();
3939

4040
assertSql(query).contains("count(*) as total_items, sum(order_qty*unit_price) as total_amount, max(order_qty*unit_price) as maxAmount from o_order_detail");
@@ -49,7 +49,7 @@ public void testNamedRawSql_with_param() {
4949
.setParameter("minId", 2)
5050
.where().isNotNull("order.id")
5151
.having().lt("totalAmount", 100)
52-
.order().desc("totalAmount")
52+
.orderBy().desc("totalAmount")
5353
.setMaxRows(10)
5454
.findList();
5555

ebean-jackson-jsonnode/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<dependency>
1616
<groupId>io.ebean</groupId>
1717
<artifactId>ebean-core-type</artifactId>
18-
<version>14.0.0</version>
18+
<version>16.1.0</version>
1919
<scope>provided</scope>
2020
</dependency>
2121

@@ -36,7 +36,7 @@
3636
<dependency>
3737
<groupId>io.avaje</groupId>
3838
<artifactId>junit</artifactId>
39-
<version>1.4</version>
39+
<version>1.6</version>
4040
<scope>test</scope>
4141
</dependency>
4242

ebean-joda-time/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<dependency>
1616
<groupId>io.ebean</groupId>
1717
<artifactId>ebean-core-type</artifactId>
18-
<version>14.0.0</version>
18+
<version>16.1.0</version>
1919
<scope>provided</scope>
2020
</dependency>
2121

@@ -35,7 +35,7 @@
3535
<dependency>
3636
<groupId>io.avaje</groupId>
3737
<artifactId>junit</artifactId>
38-
<version>1.4</version>
38+
<version>1.6</version>
3939
<scope>test</scope>
4040
</dependency>
4141

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.avaje</groupId>
66
<artifactId>java11-oss</artifactId>
7-
<version>4.0</version>
7+
<version>5.1</version>
88
</parent>
99

1010
<groupId>io.ebean</groupId>
@@ -34,7 +34,7 @@
3434
<jackson.version>2.15.0</jackson.version>
3535
<h2database.version>2.1.214</h2database.version>
3636
<ebean-types.version>3.0</ebean-types.version>
37-
<ebean-datasource.version>8.12</ebean-datasource.version>
37+
<ebean-datasource.version>10.1</ebean-datasource.version>
3838
<surefire.useModulePath>false</surefire.useModulePath>
3939
</properties>
4040

0 commit comments

Comments
 (0)