refactor(uuid): 更新 UUID 类型处理器并调整包结构
All checks were successful
Gitea Actions Build / Build (push) Successful in 1m0s

-将 UUIDBinaryTypeHandler 和 UUIDStringTypeHandler 重命名为特定数据库的实现
- 创建 mysql 和 pgsql 包以区分不同数据库的实现
- 更新版本号至 3.0.7
This commit is contained in:
Armamem0t 2025-09-11 10:00:03 +08:00
parent 1a9553b55d
commit 741ced2ffc
Signed by: minglipro
GPG Key ID: 5F355A77B22AA93B
3 changed files with 15 additions and 11 deletions

View File

@ -22,4 +22,4 @@
JDKVERSIONS=1.8
GROUPSID=com.mingliqiye.utils
ARTIFACTID=mingli-utils
VERSIONS=3.0.6
VERSIONS=3.0.7

View File

@ -20,18 +20,20 @@
* UpdateUser MingLiPro
*/
package com.mingliqiye.utils.uuid.typehandlers;
package com.mingliqiye.utils.uuid.typehandlers.mysql;
import com.mingliqiye.utils.uuid.UUID;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.mingliqiye.utils.uuid.typehandlers.UUIDConverter;
import org.apache.ibatis.type.BaseTypeHandler;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* UUIDBinaryTypeHandler 类用于处理 UUID 类型与数据库 BINARY 类型之间的转换
* 该类继承自 BaseTypeHandler专门处理 UUID 对象的序列化和反序列化

View File

@ -20,18 +20,20 @@
* UpdateUser MingLiPro
*/
package com.mingliqiye.utils.uuid.typehandlers;
package com.mingliqiye.utils.uuid.typehandlers.pgsql;
import com.mingliqiye.utils.uuid.UUID;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.mingliqiye.utils.uuid.typehandlers.UUIDConverter;
import org.apache.ibatis.type.BaseTypeHandler;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* UUIDBinaryTypeHandler 类用于处理 UUID 类型与数据库 BINARY 类型之间的转换
* 该类继承自 BaseTypeHandler专门处理 UUID 对象的序列化和反序列化