Using hibernate and Hsqldb - a list of objects are session.merged through a transaction. When session.flush() is called I get a "duplicate column name in column list: x" where x is the first column.
The database table has no duplicate columns and I am able to read the data allright. The table does contain a composite primary key which I am handling in the mapping file as:
<composite-id>
<key-property name="x"></key-property>
<key-property name="y"></key-property>
</composite-id>
<property name="x" type="string" unique="false"
optimistic-lock="true" lazy="false" generated="never">
<column name="X" length="10" not-null="true" unique="false" />
</property>
<property name="y" type="string" unique="false"
optimistic-lock="true" lazy="false" generated="never">
<column name="Y" length="18" not-null="true"
unique="false" />
</property>
Thanks