如何在JHipster v5.0(使用JDL)中为TextBlob创建字段验证?

时间:2018-06-22 16:34:18

标签: jhipster

我想知道为什么Jhipster v5不喜欢TextBlob字段验证,现在替代(TextBlob,如果我们应该使用其他字段)是什么?

entity Comment {
    creationDate Instant required
    commentText TextBlob minbytes(3) maxbytes(5000) required
    isOffensive Boolean
}

Hibernate JPA 2 Metamodel does not work with Bean Validation 2 for LOB fields, so LOB validation is disabled
WARNING! Cannot use validation in .jhipster/Comment.json for field {
"fieldName": "commentText",
"fieldType": "byte[]",
"fieldTypeBlobContent": "text",
"fieldValidateRules": [
"minbytes",
"maxbytes",
"required"
],
"fieldValidateRulesMinbytes": 3,
"fieldValidateRulesMaxbytes": 5000
}

这在version 4.13中工作正常。

0 个答案:

没有答案