Skip to content

Commit

Permalink
0.8.22
Browse files Browse the repository at this point in the history
  • Loading branch information
babyfish-ct committed Sep 21, 2023
1 parent a6572af commit 2ae6906
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion example/java/jimmer-cloud/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext {
jimmerVersion = "0.8.16"
jimmerVersion = "0.8.22"
springBootVersion = "2.7.0"
springCloudVersion = "2021.0.6"
}
Expand Down
2 changes: 1 addition & 1 deletion example/java/jimmer-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

ext {
jimmerVersion = "0.8.16"
jimmerVersion = "0.8.22"
}

group 'org.babyfish.jimmer.example.core'
Expand Down
2 changes: 1 addition & 1 deletion example/java/jimmer-sql-graphql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

ext {
jimmerVersion = "0.8.16"
jimmerVersion = "0.8.22"
}

group = 'org.babyfish.jimmer.sql.example'
Expand Down
2 changes: 1 addition & 1 deletion example/java/jimmer-sql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

ext {
jimmerVersion = "0.8.20"
jimmerVersion = "0.8.22"
}

group 'org.babyfish.jimmer.example.sql'
Expand Down
2 changes: 1 addition & 1 deletion example/java/save-command/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

ext {
jimmerVersion = "0.8.16"
jimmerVersion = "0.8.22"
}

group 'org.example'
Expand Down
2 changes: 1 addition & 1 deletion example/kotlin/jimmer-cloud-kt/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val jimmerVersion by extra { "0.8.16" }
val jimmerVersion by extra { "0.8.22" }

allprojects {
group = "org.babyfish.jimmer.example.cloud.kt"
Expand Down
2 changes: 1 addition & 1 deletion example/kotlin/jimmer-core-kt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id("com.google.devtools.ksp") version "1.7.10-1.0.6"
}

val jimmerVersion = "0.8.16"
val jimmerVersion = "0.8.22"

group = "org.babyfish.jimmer.example.kt"
version = jimmerVersion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package org.babyfish.jimmer.example.kt.core

import org.babyfish.jimmer.example.kt.core.model.Book
import org.babyfish.jimmer.example.kt.core.model.TreeNode
import org.babyfish.jimmer.example.kt.core.model.addBy
import org.babyfish.jimmer.example.kt.core.model.by
import org.babyfish.jimmer.example.kt.core.model.*
import org.babyfish.jimmer.kt.new

fun main(args: Array<String>) {
Expand Down Expand Up @@ -36,8 +33,11 @@ private fun bookDemo() {

/*
* Second step, make some "changes" based on the existing object to get a new object.
*
* `val newBook = book.copy {...}` is shorthand for
* `val newBook = new(Book::class).by(book) {...}`
*/
val newBook = new(Book::class).by(book) {
val newBook = book.copy {
name += "!"
store().name += "!"
for (author in authors()) {
Expand Down Expand Up @@ -72,8 +72,11 @@ private fun treeNodeDemo() {

/*
* Second step, make some "changes" based on the existing object to get a new object.
*
* `val newTreeNode = treeNode.copy {...}` is shorthand for
* `val newTreeNode = new(TreeNode::class).by(treeNode) {...}`
*/
val newTreeNode = new(TreeNode::class).by(treeNode) {
val newTreeNode = treeNode.copy {
childNodes()[0] // Food
.childNodes()[0] // Drinks
.childNodes()[0] // Cococola
Expand Down
2 changes: 1 addition & 1 deletion example/kotlin/jimmer-sql-graphql-kt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
id("com.google.devtools.ksp") version "1.7.10-1.0.6"
}

val jimmerVersion = "0.8.20"
val jimmerVersion = "0.8.22"

group = "org.babyfish.jimmer.example.kt"
version = jimmerVersion
Expand Down
2 changes: 1 addition & 1 deletion example/kotlin/jimmer-sql-kt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
id("com.google.devtools.ksp") version "1.7.10-1.0.6"
}

val jimmerVersion = "0.8.20"
val jimmerVersion = "0.8.22"

group = "org.babyfish.jimmer.example.kt"
version = jimmerVersion
Expand Down
2 changes: 1 addition & 1 deletion example/kotlin/save-command-kt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id("com.google.devtools.ksp") version "1.7.10-1.0.6"
}

val jimmerVersion = "0.8.16"
val jimmerVersion = "0.8.22"

group = "org.babyfish.jimmer.example.save"
version = jimmerVersion
Expand Down

0 comments on commit 2ae6906

Please sign in to comment.