我想知道为什么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
中工作正常。