Skip to content

Commit

Permalink
Doc -> 0.7.132
Browse files Browse the repository at this point in the history
  • Loading branch information
babyfish-ct committed Aug 12, 2023
1 parent b5d2da2 commit e0d2c48
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 26 deletions.
8 changes: 4 additions & 4 deletions doc/docs/old-en/jimmer-core/draft.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ Due to the existence of Annotation Processor/KSP plugin in the gradle configurat
```groovy title="build.gradle"
dependencies {
implementation 'org.babyfish.jimmer:jimmer-core:0.7.131'
implementation 'org.babyfish.jimmer:jimmer-core:0.7.132'
// highlight-next-line
annotationProcessor 'org.babyfish.jimmer:jimmer-apt:0.7.131'
annotationProcessor 'org.babyfish.jimmer:jimmer-apt:0.7.132'
// This annotation processor generates source code
// for INTERFACEs marked by
// `@org.babyfish.jimmer.Immutable` or
Expand All @@ -84,9 +84,9 @@ plugins {
}
dependencies {

implementation("org.babyfish.jimmer:jimmer-core-kotlin:0.7.131")
implementation("org.babyfish.jimmer:jimmer-core-kotlin:0.7.132")
// highlight-next-line
ksp("org.babyfish.jimmer:jimmer-ksp:0.7.131")
ksp("org.babyfish.jimmer:jimmer-ksp:0.7.132")
// The ksp plugin generates source code
// for INTERFACEs marked by
// `@org.babyfish.jimmer.Immutable` or
Expand Down
16 changes: 8 additions & 8 deletions doc/docs/old-en/jimmer-core/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import TabItem from '@theme/TabItem';
```groovy title="build.gradle"
dependencies {
implementation 'org.babyfish.jimmer:jimmer-core:0.7.131'
annotationProcessor 'org.babyfish.jimmer:jimmer-apt:0.7.131'
implementation 'org.babyfish.jimmer:jimmer-core:0.7.132'
annotationProcessor 'org.babyfish.jimmer:jimmer-apt:0.7.132'
}
```

Expand All @@ -27,7 +27,7 @@ dependencies {
<dependency>
<groupId>org.babyfish.jimmer</groupId>
<artifactId>jimmer-core</artifactId>
<version>0.7.131</version>
<version>0.7.132</version>
</dependency>
</dependencies>

Expand All @@ -42,7 +42,7 @@ dependencies {
<path>
<groupId>org.babyfish.jimmer</groupId>
<artifactId>jimmer-apt</artifactId>
<version>0.7.131</version>
<version>0.7.132</version>
</path>
</annotationProcessorPaths>
</configuration>
Expand All @@ -64,10 +64,10 @@ plugins {
dependencies {

// Step2: Add jimmer-core-kotlin
implementation("org.babyfish.jimmer:jimmer-core-kotlin:0.7.131")
implementation("org.babyfish.jimmer:jimmer-core-kotlin:0.7.132")

// Step3: Apply ksp plugin
ksp("org.babyfish.jimmer:jimmer-ksp:0.7.131")
ksp("org.babyfish.jimmer:jimmer-ksp:0.7.132")
}

// Step4: Add generated sources into compile path.
Expand All @@ -87,7 +87,7 @@ kotlin {
<dependency>
<groupId>org.babyfish.jimmer</groupId>
<artifactId>jimmer-core-kotlin</artifactId>
<version>0.7.131</version>
<version>0.7.132</version>
</dependency>

<build>
Expand Down Expand Up @@ -129,7 +129,7 @@ kotlin {
<dependency>
<groupId>org.babyfish.jimmer</groupId>
<artifactId>jimmer-ksp</artifactId>
<version>0.7.131</version>
<version>0.7.132</version>
</dependency>
</dependencies>
</plugin>
Expand Down
16 changes: 8 additions & 8 deletions doc/docs/old-en/jimmer-sql/basic/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ If you want more details on using jimmer in a non-spring environment, you can co
```groovy title="build.gradle"
dependencies {
implementation 'org.babyfish.jimmer:jimmer-sql:0.7.131'
annotationProcessor 'org.babyfish.jimmer:jimmer-apt:0.7.131'
implementation 'org.babyfish.jimmer:jimmer-sql:0.7.132'
annotationProcessor 'org.babyfish.jimmer:jimmer-apt:0.7.132'
runtimeOnly 'com.h2database:h2:2.1.212'
}
Expand All @@ -44,7 +44,7 @@ dependencies {
<dependency>
<groupId>org.babyfish.jimmer</groupId>
<artifactId>jimmer-sql</artifactId>
<version>0.7.131</version>
<version>0.7.132</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
Expand All @@ -65,7 +65,7 @@ dependencies {
<path>
<groupId>org.babyfish.jimmer</groupId>
<artifactId>jimmer-apt</artifactId>
<version>0.7.131</version>
<version>0.7.132</version>
</path>
</annotationProcessorPaths>
</configuration>
Expand All @@ -87,10 +87,10 @@ plugins {
dependencies {

// Step2: Add jimmer-sql-kotlin
implementation("org.babyfish.jimmer:jimmer-sql-kotlin:0.7.131")
implementation("org.babyfish.jimmer:jimmer-sql-kotlin:0.7.132")

// Step3: Apply ksp plugin
ksp("org.babyfish.jimmer:jimmer-ksp:0.7.131")
ksp("org.babyfish.jimmer:jimmer-ksp:0.7.132")

runtimeOnly("com.h2database:h2:2.1.212")

Expand All @@ -114,7 +114,7 @@ kotlin {
<dependency>
<groupId>org.babyfish.jimmer</groupId>
<artifactId>jimmer-sql-kotlin</artifactId>
<version>0.7.131</version>
<version>0.7.132</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
Expand Down Expand Up @@ -162,7 +162,7 @@ kotlin {
<dependency>
<groupId>org.babyfish.jimmer</groupId>
<artifactId>jimmer-ksp</artifactId>
<version>0.7.131</version>
<version>0.7.132</version>
</dependency>
</dependencies>
</plugin>
Expand Down
6 changes: 3 additions & 3 deletions doc/docs/overview/get-started/create-project.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Jimmer本身是高度中立的,可以脱离spring-boot使用;但同时也提

```xml title="pom.xml"
<properties>
<jimmer.version>0.7.131</jimmer.version>
<jimmer.version>0.7.132</jimmer.version>
</properties>

<dependencies>
Expand All @@ -75,7 +75,7 @@ Jimmer本身是高度中立的,可以脱离spring-boot使用;但同时也提

```groovy title="build.gradle"
ext {
jimmerVersion = "0.7.131"
jimmerVersion = "0.7.132"
}
dependencies {
Expand All @@ -90,7 +90,7 @@ dependencies {
<TabItem value="gradlekts" label="Gradle(kts)">

```kotlin title="build.gradle.kts"
val jimmerVersion = "0.7.131"
val jimmerVersion = "0.7.132"

dependencies {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ DTO语言用于快速定义数据结构的形状,根据这些形状,DTO可

这种方法的开发效率很高,为Jimmer量身设计,远快于使用[mapstruct](./mapstruct),是优先推荐的方式。

:::tip
即使某些特殊场景下,我们无法直接使用统一的ORM实体,不得不使用DTO对象,开发代价也仅仅是定义这些DTO的形状而已,剩下的所有工作 *(DTO相关Java/Kotlin定义、和实体之间的彼此转化逻辑、和数据库的交互逻辑)* 都是全自动的,完全感觉不到传统技术方案中因DTO爆炸带来的痛苦。
:::

## 2. 创建文件

DTO语言的代码体现为扩展名为`dto`的文件,一旦编译完成,这些文件就没有价值了。所以,这些文件不能放到`src/main/resources`中打包,而是放到`src/main/dto`目录中。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Jimmer本身是高度中立的,可以脱离spring-boot使用;但同时也提

```xml title="pom.xml"
<properties>
<jimmer.version>0.7.131</jimmer.version>
<jimmer.version>0.7.132</jimmer.version>
</properties>

<dependencies>
Expand All @@ -75,7 +75,7 @@ Jimmer本身是高度中立的,可以脱离spring-boot使用;但同时也提

```groovy title="build.gradle"
ext {
jimmerVersion = "0.7.131"
jimmerVersion = "0.7.132"
}
dependencies {
Expand All @@ -90,7 +90,7 @@ dependencies {
<TabItem value="gradlekts" label="Gradle(kts)">

```kotlin title="build.gradle.kts"
val jimmerVersion = "0.7.131"
val jimmerVersion = "0.7.132"

dependencies {

Expand Down

0 comments on commit e0d2c48

Please sign in to comment.