jamie_dainton wrote:
Post the mapping documents for one that works and one that doesn't.
As a quick guess, you should be looking for <array> in the documentation.
This one works:
---------------
<class name="TableOne" table="table_one">
<id name="id" column="id">
<generator class="assigned"/>
</id>
<property name="fd" column="fd"/>
<property name="mge" column="mge"/>
<property name="cr" column="cr"/>
<property name="kae" column="kae"/>
<property name="tsae" column="tsae"/>
<property name="cn" column="cn"/>
</class>
maps to:
private String id;
private boolean fd;
private double mge;
private double cr;
private double kae;
private double tsae;
private String cn;
This one doesn't:
-----------------
<class name="TableTwo" table="table_two">
<id name="id" column="id">
<generator class="assigned"/>
</id>
<property name="fd" column="fd"/>
<property name="mge" column="mge"/>
<property name="cr" column="cr"/>
<property name="kae" column="kae"/>
<property name="tsae" column="tsae"/>
<property name="cn" column="cn"/>
<property name="wavelengthProfile" column="wavelength_profile"/>
</class>
maps to:
private String id;
private boolean fd;
private double mge;
private double cr;
private double kae;
private double tsae;
private String cn;
private double[][] wavelengthProfile;
*** The only difference between the 2 is the last column of the second one.
I'm not sure what you mean by looking at the <array> -- in the documentation?