I have a property:
private double property1;
with getters and setters, basic annotation.
I use hbm2ddl to create the tables, but the column for this property get decimal_digits <null>. (If decimal_digits is null and I try to insert the value 0,12345 the value becomes 0)
If I add annotations like: @Column(precision=5), nothing happens.
I tried changing to float instead of double, nothing happens.
Can I add something to my hibernate.cfg.xml to set default decimal digits or something?
_________________ Emil
Don't forget to rate, I'm desperate!
|