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:
Use @Type (only in Hibernate):
@Column(precision = 5, scale = 4) @Type(type = "big_decimal") private double similarity;
Will result in definition (PostgreSQL, Oracle):
similarity numeric(5, 4), similarity number(5, 4)