Hide Forgot
Description of problem: When launching candlepin with: jpa.config.hibernate.hbm2ddl.auto=validate The webapp fails to start with: Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [locked] in table [cp2_content]; found [int2 (Types#SMALLINT)], but expecting [int4 (Types#INTEGER)] Version-Release number of selected component (if applicable): candlepin-2.0.19-1.el7.noarch Additional info:
Does this PR address all such issues in candlepin? https://github.com/candlepin/candlepin/pull/1365
No idea if it address all such issues, but it addresses the one it the bug.
Candlepin does not enable this when installed. Candlepin does not currently annotate all of its model objects with the appropriate validation annotations and is therefor validation is incomplete when enabled.