After upgrading from Hibernate 5 to Hibernate 6.6.33.Final, when I run mvn install my build fails with the following exception:
Caused by: java.lang.IllegalArgumentException: scale has no meaning for SQL floating point types
at org.hibernate.dialect.Dialect$SizeStrategyImpl.resolveSize(Dialect.java:5449)
at org.hibernate.mapping.Column.calculateColumnSize(Column.java:468)
at org.hibernate.mapping.Column.getColumnSize(Column.java:440)
At first, I thought the issue was due to defining columns with precision/scale in my entities, e.g.:
@Column(precision = 10, scale = 3)
private Double xScale;
However, I have searched all entity classes in my project and don’t find any use of precision/scale annotations.
Has anyone else encountered this? What could be causing Hibernate to throw this exception during startup?