Hibernate version:3.0 beta 1
Hi,
Im wondering how can i change my query precision to retrieve the expected results.
I have a column of type float with several decimal digits, but when query the column in my application the values returned are always truncated to 6 digits, and the decimal degitis vary due the fixed part...
Example:
38.1234567 comes 38.1234
9.12345678 comes 9.12345
Hbm example:
...
<property
name="longitude"
type="java.lang.Float"
column="longitude"
length="12"
precision="8"
scale="8"
/>
...
I have changed my hbm file to have precision and scale but was useless.
When i execute the query in Mysql the results are displayed correctly.
Does any one knows how to have full precision?
|