EasyCode icon indicating copy to clipboard operation
EasyCode copied to clipboard

怎么拿到字段的约束条件,例如not null。

Open JasonLonglong opened this issue 2 years ago • 1 comments

目的是想给Entity生成字段的时候根据数据库字段是否为not null添加@NotNull注解,快速生成表单校验实体类

JasonLonglong avatar Oct 13 '23 09:10 JasonLonglong

判断是否可为空: columnNotNull = $!tableInfo.fullColumn.get(0).obj.isNotNull()

xzxiaoshan avatar Jan 29 '24 06:01 xzxiaoshan