Hi,
I have this mapping snippet in my application :
Code:
/* The number of volume classes */
public static final int VOLUME_COUNT = 6;
/* The volume classes */
@CollectionOfElements(fetch = FetchType.EAGER)
@JoinTable(
name = "RATES_VOLUMES",
joinColumns = @JoinColumn(name = "RATE_ID")
)
@IndexColumn(name = "VOL_CLASS", base = 1)
private double[] volumeClasses = new double[VOLUME_COUNT];
I'm using the Oracle9Dialect class as dialect.
The problem is that the elements of the array are mapped in a column of type FLOAT. I'd like it to be of type NUMBER(7,4).
How can I achieve this with annotations and without being forced to change my double[] to BigDecimal[] ?
I've already tried to add
Code:
@Column(precision = 7, scale = 4)
to the mapping snippet, but it doesn't do anything !
By the way, I've read
http://forum.hibernate.org/viewtopic.php?t=978630 and
http://forum.hibernate.org/viewtopic.php?t=979025 but they don't answer my question.