i set the following mapping
Code:
<set name="images" lazy="true" table="ITEM_IMAGE"> <key column="ITEM_ID"/>
<element type="string" column="FILENAME" not-null="true"/> </set>
but for the ITEM_IMAGE i added additional versional column
Code:
<version name="version" column="VERSION" access="field"/>
when i try to save the item with the added filename it rises exception saying that version cant be null while executing the following DML
Code:
insert into ITEM_IMAGE (ITEM_ID, FILENAME) values (?, ?)
so it ignores the version column specified in the mapping
is there soulution to the problem, because i also using that ITEM_IMAGE as an entity which should have a version coulumn?[/code]