I followed the guidance in the links here and here to create a GeoCoordinateDatatype, however in the SQL Server database the scale/precision is 18,0. I’d like it to be 11,8. My datatypes.xml file includes this reference to my new type:
<datatype class="com.varasset.datatypes.GeoCoordinateDatatype"
format="#0.00000000" decimalSeparator="." groupingSeparator=""
javaType="java.lang.BigDecimal" sqlType="decimal"/>
My longitude property on my class looks like this:
@MetaProperty(datatype = GeoCoordinateDatatype.NAME)
@Column(name = "LONGITUDE", precision = 11, scale = 8)
protected BigDecimal longitude;
Am I doing something wrong or is there a bug with the SQL script generation?
Thanks and keep up the great work!