Hi,
Hibernate Version: 3.2.6.ga
I have a class with few Double-values to write in the Database. With HSQLDB it works fine.
I switched now to MySQL, and I get following Error Message:
Quote:
14:10:04,184 INFO DoubleType:144 - could not bind value 'Infinity' to parameter: 13; 'Infinity' is not a valid numeric or approximate numeric value
The reason for this error is clear, the Double value is set to Infinity and hibernate is not able to map Infinity to a mysql-double.
Now my question, is there maybe a way to set a default value for not map-able values?
For example:
every times the translator receives a 'Infinity' -> map it to '100.000'.
Thx in advance