Skip to content

Commit cdd1a61

Browse files
committed
0.0.6
1 parent e75b8f0 commit cdd1a61

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

example/jimmer-sql/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ repositories {
1010
}
1111

1212
dependencies {
13-
implementation 'org.babyfish.jimmer:jimmer-core:0.0.5'
14-
implementation 'org.babyfish.jimmer:jimmer-sql:0.0.5'
15-
annotationProcessor 'org.babyfish.jimmer:jimmer-apt:0.0.5'
13+
implementation 'org.babyfish.jimmer:jimmer-core:0.0.6'
14+
implementation 'org.babyfish.jimmer:jimmer-sql:0.0.6'
15+
annotationProcessor 'org.babyfish.jimmer:jimmer-apt:0.0.6'
1616

1717
implementation 'javax.validation:validation-api:2.0.1.Final'
1818
implementation 'javax.persistence:javax.persistence-api:2.2'

example/jimmer-sql/src/main/java/org/babyfish/jimmer/sql/example/App.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import org.babyfish.jimmer.sql.ast.query.TypedRootQuery;
77
import org.babyfish.jimmer.sql.ast.tuple.Tuple3;
88
import org.babyfish.jimmer.sql.example.model.AuthorTable;
9+
import org.babyfish.jimmer.sql.example.model.AuthorTableEx;
910
import org.babyfish.jimmer.sql.example.model.Book;
1011
import org.babyfish.jimmer.sql.example.model.BookTable;
1112

@@ -33,7 +34,7 @@ private static void showData(
3334
int pageSize
3435
) {
3536
ConfigurableTypedRootQuery<BookTable, Tuple3<Book, Integer, Integer>> query =
36-
BookTable.createQuery(SQL_CLIENT, (q, book) -> {
37+
SQL_CLIENT.createQuery(BookTable.class, (q, book) -> {
3738
if (name != null && !name.isEmpty()) {
3839
q.where(book.name().ilike(name));
3940
}
@@ -43,7 +44,7 @@ private static void showData(
4344
if (authorName != null && !authorName.isEmpty()) {
4445
q.where(
4546
book.id().in(
46-
AuthorTable.createSubQuery(q, (sq, author) -> {
47+
q.createSubQuery(AuthorTableEx.class, (sq, author) -> {
4748
sq.where(
4849
author.firstName().ilike(authorName).or(
4950
author.lastName().ilike(authorName)

0 commit comments

Comments
 (0)