I try to create a table from hibernate annotations. I need to have a column of Double type, with the length specified like : (10,2). So SQL syntax show like:
... DOUBLE(10,2) ....
I have tried to do that:
@Column(length = 10, precision = 2) ...
but when i look at my created table, it is not specified the length for Double column. Does hibernate has solution for that or is it necessary to alter table configuration by hand?
Thanks!
question from:https://stackoverflow.com/questions/4078559/how-to-specify-doubles-precision-on-hibernate