Skip to content

Commit

Permalink
0.8.92
Browse files Browse the repository at this point in the history
  • Loading branch information
babyfish-ct committed Feb 8, 2024
1 parent e6f6943 commit b06205a
Show file tree
Hide file tree
Showing 40 changed files with 2,230 additions and 2,267 deletions.
4,312 changes: 2,156 additions & 2,156 deletions benchmark/benchmark-report.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion benchmark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

ext {
jimmerVersion = "0.7.107"
jimmerVersion = "0.8.92"
}

group 'org.babyfish.jimmer'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import org.babyfish.jimmer.benchmark.springjdbc.SpringJdbcDataRepository;
import org.babyfish.jimmer.benchmark.mybatis.MyBatisDataMapper;
import org.babyfish.jimmer.sql.JSqlClient;
import org.babyfish.jimmer.sql.ast.query.selectable.RootSelectable;
import org.babyfish.jimmer.sql.kt.KSqlClient;
import org.jooq.DSLContext;
import org.ktorm.database.Database;
Expand Down
2 changes: 1 addition & 1 deletion example/java/data-authorization/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

ext {
jimmerVersion = "0.8.46"
jimmerVersion = "0.8.92"
}

group 'org.example'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,20 @@ public class FileService implements Context {
private static final Fetcher<File> UP_RECURSION =
FileFetcher.$
.allScalarFields()
.parent(
FileFetcher.$.allScalarFields(),
RecursiveFieldConfig::recursive
);
.recursiveParent();

private static final Fetcher<File> DOWN_RECURSION =
FileFetcher.$
.allScalarFields()
.subFiles(
FileFetcher.$.allScalarFields(),
RecursiveListFieldConfig::recursive
);
.recursiveSubFiles();

private static final Fetcher<File> DETAIL_DOWN_RECURSION =
FileFetcher.$
.allScalarFields()
.authorizedUsers(
UserFetcher.$.allScalarFields()
)
.subFiles(
FileFetcher.$
.allScalarFields()
.authorizedUsers(
UserFetcher.$.allScalarFields()
),
RecursiveListFieldConfig::recursive
);
.recursiveSubFiles();

public File findByPath(String path) {
List<String> parts = Arrays.stream(SLASH_PATTERN.split(path))
Expand Down
1 change: 0 additions & 1 deletion example/java/jimmer-cloud/author-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dependencies {
implementation(project(":model"))

runtimeOnly 'com.h2database:h2'
implementation 'org.springdoc:springdoc-openapi-ui:1.6.13'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jimmer:
client:
ts:
path: /author-service-ts.zip
openapi:
path: /open-api.yml
ui-path: /open-api.html

server:
port: 7003
Expand All @@ -23,7 +26,3 @@ eureka:
client:
serviceUrl:
defaultZone: http://localhost:7000/eureka/

springdoc:
swagger-ui:
path: /ui
1 change: 0 additions & 1 deletion example/java/jimmer-cloud/book-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ dependencies {
implementation(project(":model"))

runtimeOnly 'com.h2database:h2'
implementation 'org.springdoc:springdoc-openapi-ui:1.6.13'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jimmer:
client:
ts:
path: /book-service-ts.zip
openapi:
path: /open-api.yml
ui-path: /open-api.html

server:
port: 7002
Expand All @@ -23,7 +26,3 @@ eureka:
client:
serviceUrl:
defaultZone: http://localhost:7000/eureka/

springdoc:
swagger-ui:
path: /ui
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.77"
jimmerVersion = "0.8.92"
springBootVersion = "2.7.0"
springCloudVersion = "2021.0.6"
}
Expand Down
1 change: 0 additions & 1 deletion example/java/jimmer-cloud/store-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dependencies {
implementation(project(":model"))

runtimeOnly 'com.h2database:h2'
implementation 'org.springdoc:springdoc-openapi-ui:1.6.13'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jimmer:
client:
ts:
path: /store-service-ts.zip
openapi:
path: /open-api.yml
ui-path: /open-api.html

server:
port: 7001
Expand All @@ -23,7 +26,3 @@ eureka:
client:
serviceUrl:
defaultZone: http://localhost:7000/eureka/

springdoc:
swagger-ui:
path: /ui
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.77"
jimmerVersion = "0.8.92"
}

group 'org.babyfish.jimmer.example.core'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import org.babyfish.jimmer.example.core.model.*;

import java.time.LocalDateTime;

public class App {

public static void main(String[] args) {
Expand Down Expand Up @@ -39,10 +41,19 @@ private static void bookDemo() {
* Second step, make some "changes" based on the existing object to get a new object.
*/
Book newBook = Objects.createBook(book, b -> {

b.setName(b.name() + "!");
b.store().setName(b.store().name() + "!");
b.setLastModifiedTime(LocalDateTime.now());

BookStoreDraft store = b.store();
if (store != null) {
store.setName(store.name() + "!");
store.setLastModifiedTime(LocalDateTime.now());
}

for (AuthorDraft author : b.authors(false)) {
author.setName(author.name() + "!");
author.setLastModifiedTime(LocalDateTime.now());
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.babyfish.jimmer.Immutable;

import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.List;

@Immutable
Expand All @@ -11,5 +12,7 @@ public interface Author {
@Size(max = 50)
String name();

LocalDateTime lastModifiedTime();

List<Book> books();
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package org.babyfish.jimmer.example.core.model;

import org.babyfish.jimmer.Immutable;
import org.jetbrains.annotations.Nullable;

import javax.validation.constraints.Null;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.List;

@Immutable
Expand All @@ -17,5 +19,7 @@ public interface Book {

int price();

LocalDateTime lastModifiedTime();

List<Author> authors();
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.List;

@Immutable
Expand All @@ -13,5 +14,7 @@ public interface BookStore {
@Size(max = 50)
String name();

LocalDateTime lastModifiedTime();

List<Book> books();
}
2 changes: 1 addition & 1 deletion example/java/jimmer-sql-graphql/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext {
jimmerVersion = "0.8.77"
jimmerVersion = "0.8.92"
springBootVersion = "2.7.0"
}

Expand Down
2 changes: 1 addition & 1 deletion example/java/jimmer-sql/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext {
jimmerVersion = "0.8.91"
jimmerVersion = "0.8.92"
springBootVersion = "2.7.0"
}

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.77"
jimmerVersion = "0.8.92"
}

group 'org.example'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.babyfish.jimmer.example.save.common;

import org.babyfish.jimmer.example.save.model.JimmerModule;
import org.babyfish.jimmer.sql.JSqlClient;
import org.babyfish.jimmer.sql.dialect.H2Dialect;
import org.babyfish.jimmer.sql.runtime.*;
Expand Down Expand Up @@ -36,7 +35,6 @@ public void beforeTest() throws SQLException {
executedStatements = new ArrayList<>();
JSqlClient.Builder builder = JSqlClient
.newBuilder()
.setEntityManager(JimmerModule.ENTITY_MANAGER)
.setDialect(new H2Dialect())
.setExecutor(new RecordSqlExecutor())
.setConnectionManager(new ExistsConnectionManager());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dependencies {
implementation("org.springframework.cloud:spring-cloud-starter-loadbalancer")

runtimeOnly("com.h2database:h2:2.1.212")
implementation("org.springdoc:springdoc-openapi-ui:1.6.11")
}

tasks.withType<KotlinCompile> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jimmer:
client:
ts:
path: /author-service-ts.zip
openapi:
path: /open-api.yml
ui-path: /open-api.html

server:
port: 7003
Expand All @@ -24,7 +27,3 @@ eureka:
client:
serviceUrl:
defaultZone: http://localhost:7000/eureka/

springdoc:
swagger-ui:
path: /ui
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dependencies {
implementation("org.springframework.cloud:spring-cloud-starter-loadbalancer")

runtimeOnly("com.h2database:h2:2.1.212")
implementation("org.springdoc:springdoc-openapi-ui:1.6.11")
}

tasks.withType<KotlinCompile> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jimmer:
client:
ts:
path: /book-service-ts.zip
openapi:
path: /open-api.yml
ui-path: /open-api.html

server:
port: 7002
Expand All @@ -24,7 +27,3 @@ eureka:
client:
serviceUrl:
defaultZone: http://localhost:7000/eureka/

springdoc:
swagger-ui:
path: /ui
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.77" }
val jimmerVersion by extra { "0.8.92" }

allprojects {
group = "org.babyfish.jimmer.example.cloud.kt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dependencies {
implementation("org.springframework.cloud:spring-cloud-starter-loadbalancer")

runtimeOnly("com.h2database:h2:2.1.212")
implementation("org.springdoc:springdoc-openapi-ui:1.6.11")
}

tasks.withType<KotlinCompile> {
Expand Down
Loading

0 comments on commit b06205a

Please sign in to comment.