| Hi, I am not sure what would be the best fix for this, but here is one idea that gets the job done: Add isScaleSet and isPrecisionSet boolean instance variables to org.hibernate.mapping.Column object, and initialize to false. When then corresponding Column.precision & Column.scale setters are called, set these values to true. Then in the BasicPOJOClass, change the conditions as follows. This line: if (column.getPrecision() != Column.DEFAULT_PRECISION) becomes this: if (column.isPrecisionSet()) and this line: if (column.getScale() != Column.DEFAULT_SCALE) becomes this: if (column.isScaleSet()) |