Hibernate version: 3.2.4
Mapping documents:
Code:
<hibernate-mapping>
<class name="com.doubleclick.dart.boom.model.impl.BoomListParametersImpl" table="BOOM_LIST_PARAMETERS">
<id name="id" type="long" column="LIST_ID" unsaved-value="undefined">
<generator class="foreign">
<param name="property">userListDtImpl</param>
</generator>
</id>
<one-to-one name="userListDtImpl" class="com.doubleclick.dart.boom.model.impl.UserListDtImpl" constrained="true"/>
<property name="src" column="SRC" type="string" not-null="false"
length="100" />
<property name="dcnet" column="DCNET" type="string"
not-null="false" length="100" />
<property name="boom" column="BOOM" type="string"
not-null="false" length="300" />
</class>
</hibernate-mapping>
In the above mapping I want hibernate to assign same value as of ID property to BOOM property while saving the object.
Can you please suggest how can I acheive this?