我需要检查应用程序启动时,目前在DB中的DB模式和以前用于JOOQ生成模型的模式是相同的。在某些情况下,用于生成字段的DataTypes和运行时从create.meta()检索的字段不匹配。示例是"time" timestamp without time zone DEFAULT now()字段,它具有length、precision、scale值,在运行时JOOQ字段中没有defaultValue值,但是在生成的JOOQ字
我试图实现的一个验证是检查每个字段的输入值的大小不超过对应列的最大大小。为了将字段映射到数据库列,我使用JPA的@Column注释如下:public class Person {
Person类上的@ComplexValidation注释是我正在尝试实现的JSR 303自定义约束验证器,它基本上尝试执行以下步骤:
撤回类中带有@Column注释的所有字段它从注释中提取表名
当我从jooq生成器生成java类时,我得到一个不推荐使用的字段: * @deprecated Unknown data type.Please define an explicit {@link org.jooq.Binding} to specify how this type should be handled.}</url>
;未指定的RuntimeException at org.jooq.impl.Tools.translate:730) ~[jooq-3.14.7.jar:na]
at org.springframework.boot.autoconfigure.jooq.JooqExceptionTranslator.handle(ExecuteListeners.java:274) ~[jo