Hi there,
I'm currently facing a rather weird problem. I hope it won't be weird at all for you...
I wan to map a double[] java property and do the following :
Code:
<array name="prop" table="prop_table">
<key column="id"/>
<list-index column="prop_idx"/>
<element column="prop" type="double" length="10" />
</array>
However, when I try to load the targeted entity, I get the following error :
Code:
ERROR - BasicPropertyAccessor$BasicSetter.set(118) | IllegalArgumentException in class: ..., setter method of property: ...
ERROR - BasicPropertyAccessor$BasicSetter.set(122) | expected type: [D, actual value: [Ljava.lang.Double;
It seems as if hibernate was returning a collection of Double (java.lang.Double) instead of one of double. Is it to you a known issue ? I'm using a mysql database in innoDB mode and the corresponding hibernate dialect.
Thanks in advance for your answers.