简体   繁体   English

Apache元模型-最小值/最大值/默认值

[英]Apache Metamodel - Min/Max/Default values

Is there a way to get to the default value for a column and/or the min/max constraints for a column using Apache Metamodel? 有没有一种方法可以使用Apache Metamodel达到列的默认值和/或列的最小/最大约束?

I know in the java.sql.DatabaseMetaData you can get to the default value of a column but I am not seeing the same accessor in the column definition for Metamodel. 我知道在java.sql.DatabaseMetaData中,您可以获取列的默认值,但是在Metamodel的列定义中没有看到相同的访问器。

I am not finding a way to get min/max values in either, so I am wondering if this is possible due to the way they are maintained. 我没有找到一种方法来获取最小值/最大值,因此我想知道由于维护它们的方式是否可能。

Am I missing something? 我想念什么吗?

There's currently no such functionality in Apache MetaModel. Apache MetaModel当前没有此类功能。

Would be a nice addition though. 将会是一个不错的补充。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM