I noticed that the PostgresTypeConverter does not override the method getNumberType. The default implementation, as provided by the AbstractTypeConverter, is to return a new NumberType. The constructor for NumberType calls the super-constructor with a dataTypeName parameter of “NUMBER”.
Now Postgres does not know a NUMBER datatype, but it does know NUMERIC.
So I have the following question: why is the getNumberType method in PostgresTypeConverter not overridden as:
-
@Override
public NumberType getNumberType() {
return new NumberType("NUMERIC");
}