-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# 常用错误 | ||
# 常用错误 | ||
|
||
## 没有session | ||
## 没有session | ||
|
||
 | ||
|
||
使用`@SingleSession`和`@Transactional`的注解的类需要在maven打包的时候执行代码生成任务CodeGenTask。 | ||
所以需要先运行mvn compile -DskipTests,然后才可以在IDEA里启动调试。 | ||
使用`@SingleSession`和`@Transactional`的注解的类需要在maven打包的时候执行代码生成任务CodeGenTask。 | ||
所以需要先运行mvn compile -DskipTests,然后才可以在IDEA里启动调试。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# ORM数据库初始化 | ||
# ORM数据库初始化 | ||
|
||
## 启动时自动对数据库进行增量更新 | ||
## 启动时自动对数据库进行增量更新 | ||
|
||
* 仅自动执行表新增、字段重定义、字段新增、唯一约束新增、唯一约束删除、唯一约束重定义等变更,不做表和字段的删除:字段删除无法区分是否为重命名造成的,表删除可能会造成比对范围以外的表被误删除 | ||
* 启用自动升级,需在工程内引入依赖 io.github.entropy-cloud:nop-dbtool-core,并设置 nop.orm.db-differ.auto-upgrade-database 为 true | ||
* 仅自动执行表新增、字段重定义、字段新增、唯一约束新增、唯一约束删除、唯一约束重定义等变更,不做表和字段的删除:字段删除无法区分是否为重命名造成的,表删除可能会造成比对范围以外的表被误删除 | ||
* 启用自动升级,需在工程内引入依赖 io.github.entropy-cloud:nop-dbtool-core,并设置 nop.orm.db-differ.auto-upgrade-database 为 true |