Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JasonLonglong opened this issue Oct 13, 2023 · 1 comment
Open

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

JasonLonglong opened this issue Oct 13, 2023 · 1 comment

Comments

@JasonLonglong
Copy link

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

@xzxiaoshan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants