Details
Assignee
UnassignedUnassignedReporter
Elisabetta FreschiElisabetta FreschiComponents
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Elisabetta Freschi
Elisabetta FreschiComponents
Affects versions
Priority
Created February 12, 2025 at 2:00 PM
Updated February 12, 2025 at 5:38 PM
Hibernate 6.4. During Spring Boot application startup, the
getCheckCondition
method (ofBooleanJavaType
) is called for each Boolean property of the entity, even though the settings specify that SQL schema generation should not take place (generate-ddl: false
andddl-auto: none
). This behavior, in addition to being suboptimal, creates issues in Spring Boot applications when there areAttributeConverter
s that are used in default BooleanJavaType.getCheckCondition and before the injection of the necessary components for conversion. In addition the condition generated, does not support non-deterministic conversions: (it's not guaranteed thattrue
will always map to the same value by converter).Problem discussed in topic: https://discourse.hibernate.org/t/check-condition-for-booleanjavatype-with-boolean-converter/11020
Method getCheckCondition should not be called with
ddl-auto: none
andgenerate-ddl: false
.