简体   繁体   English

Jhipster jdl中的自定义数字

[英]Custom numbers in Jhipster jdl

I am trying to modify my existing entity using the .jdl file for jhipster. 我正在尝试使用.jdl文件修改jhipster的现有实体。

Now, my requirement for the field is to have only numbers till 1 to 10. 现在,我对该字段的要求是只有1到10之间的数字。

I know this can be easily handled in the fronted or the ts file. 我知道这可以在fronted或ts文件中轻松处理。

However, is there any way JHipster can do it ?? 但是,JHipster有什么办法可以做到?

For example we have maxlength and minlength attributes for a field: 例如,我们有一个字段的maxlength和minlength属性:

entity test {
    label String required minlength(3);
}

Thank you in advance. 先感谢您。

Thank you... I guess this problem can be solved using the pattern where I can add my custom regular expression. 谢谢...我想可以使用可以添加自定义正则表达式的模式来解决此问题。

Issue Resolved 问题解决了

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

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