mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
v1.0.0 beta2 release
This commit is contained in:
parent
7ade30fba7
commit
463ebcddcd
@ -3,6 +3,7 @@ mybatis-flex v1.0.0-beta.2 20230303:
|
|||||||
优化:完善对 @Column(onUpdateValue=xxx,onInsertValue=xxx) 的支持
|
优化:完善对 @Column(onUpdateValue=xxx,onInsertValue=xxx) 的支持
|
||||||
优化:完善对 @Column(version = true) 的支持
|
优化:完善对 @Column(version = true) 的支持
|
||||||
优化:重命名 BaseMapper 的 insertBatchWithFirstEntityColumns 为 insertBatch
|
优化:重命名 BaseMapper 的 insertBatchWithFirstEntityColumns 为 insertBatch
|
||||||
|
优化:重命名 DialectFactory 的 createDialectByDbType 为 createDialect
|
||||||
优化:为逻辑删除的默认值功能添加常量
|
优化:为逻辑删除的默认值功能添加常量
|
||||||
修复:createDialectByDbType 方法中pg库的 KeywordWrap 错误
|
修复:createDialectByDbType 方法中pg库的 KeywordWrap 错误
|
||||||
文档:优化文档
|
文档:优化文档
|
||||||
|
|||||||
@ -48,7 +48,7 @@ public class DialectFactory {
|
|||||||
*/
|
*/
|
||||||
public static IDialect getDialect() {
|
public static IDialect getDialect() {
|
||||||
DbType dbType = ObjectUtil.requireNonNullElse(dbTypeThreadLocal.get(), FlexGlobalConfig.getDefaultConfig().getDbType());
|
DbType dbType = ObjectUtil.requireNonNullElse(dbTypeThreadLocal.get(), FlexGlobalConfig.getDefaultConfig().getDbType());
|
||||||
return MapUtil.computeIfAbsent(dialectMap, dbType, DialectFactory::createDialectByDbType);
|
return MapUtil.computeIfAbsent(dialectMap, dbType, DialectFactory::createDialect);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -89,7 +89,7 @@ public class DialectFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static IDialect createDialectByDbType(DbType dbType) {
|
private static IDialect createDialect(DbType dbType) {
|
||||||
switch (dbType) {
|
switch (dbType) {
|
||||||
case MYSQL:
|
case MYSQL:
|
||||||
case H2:
|
case H2:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user