参考博文:https://blog.csdn.net/xiaofengtoo/article/details/84395199 修复了其函数中的bug,支持生成包含:字段(支持数组类型字段).约束.索引(支持生成唯一索引,支持全类型索引)在内的建表语句. 生成的sql指定scheme为:[sch_租户id],不同scheme生成规则或者不需要指定scheme直接修改下相关代码即可使用. CREATE OR REPLACE FUNCTION "public"."findattn
mybatis 比 ibatis 改进了很多,特别是支持了注解,支持了plugin inteceptor,也给开发者带来了更多的灵活性,相比其他ORM,我还是挺喜欢mybatis的. 闲言碎语不要讲,今天研究了下mybatis的typeHandler: 先看这样一张表(postgresql) create table user ( id serial not null name ), age integer, emails character varchar[], -- varchar 数组 表