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

希望可以获取到更详细sql字段的信息 #119

Open
setlx opened this issue Dec 6, 2023 · 3 comments
Open

希望可以获取到更详细sql字段的信息 #119

setlx opened this issue Dec 6, 2023 · 3 comments

Comments

@setlx
Copy link

setlx commented Dec 6, 2023

可以获取字段更详细的信息,如是否为空,varchar的长度信息。在添加,修改时可以非常方便的生成表单对象的BeanValidation约束注解。

@xzxiaoshan
Copy link

varchar 长度信息:sqlTypeLen,即 $!tableInfo.fullColumn.get(0).obj.dataType.getLength()

@xzxiaoshan
Copy link

obj.dataType 已不被推荐使用 @deprecated
更新为:obj.dasType.toDataType()

@xzxiaoshan
Copy link

xzxiaoshan commented Jan 29, 2024

判断是否可为空:
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