forked from ZhoodJ/iuap-pap-baseservice
-
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.
Merge branch 'v3.5.6-RC1' into develop
# Conflicts: # core/src/main/java/com/yonyou/iuap/baseservice/persistence/mybatis/ext/adapter/DefaultMapperBuilder.java # core/src/main/java/com/yonyou/iuap/baseservice/support/generator/Strategy.java # persistence/pom.xml
- Loading branch information
Showing
9 changed files
with
63 additions
and
11 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...ava/com/yonyou/iuap/baseservice/persistence/mybatis/ext/adapter/DefaultMapperBuilder.java
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
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
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
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
public enum Strategy { | ||
|
||
UUID, //UUID | ||
AUTOINC, //表自增 | ||
CUSTOM, //用户自定义 | ||
CONFIG; //Properties配置文件 | ||
|
||
|
31 changes: 31 additions & 0 deletions
31
core/src/main/java/com/yonyou/iuap/baseservice/support/generator/impl/AutoIncGenerator.java
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.yonyou.iuap.baseservice.support.generator.impl; | ||
|
||
|
||
import com.yonyou.iuap.baseservice.support.generator.Generator; | ||
import com.yonyou.iuap.baseservice.support.generator.Strategy; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 不填充id靠表自增特性自动生成 | ||
* | ||
* @author leon | ||
* @date 2019/3/29 | ||
*/ | ||
public class AutoIncGenerator implements Generator { | ||
|
||
@Override | ||
public Strategy strategy() { | ||
return Strategy.AUTOINC; | ||
} | ||
|
||
@Override | ||
public String name() { | ||
return "auto"; | ||
} | ||
|
||
@Override | ||
public Serializable generate(String module, Class<?> entityClazz) { | ||
return null; | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
.../main/resources/META-INF/services/com.yonyou.iuap.baseservice.support.generator.Generator
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 +1,2 @@ | ||
com.yonyou.iuap.baseservice.support.generator.impl.UUIDGenerator | ||
com.yonyou.iuap.baseservice.support.generator.impl.UUIDGenerator | ||
com.yonyou.iuap.baseservice.support.generator.impl.AutoIncGenerator |
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
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
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