Great, thanks for the quick reply! I have it working, one more question (I'm getting greedy and curious) Is it possible to use the reference to load the object, instead of the Long?
Code:
// Load PanelRedeemAddress
PanelRedeemAddress panelRedeemAddress = (PanelRedeemAddress) session.load(PanelRedeemAddress.class, panel.getId());
just use panel, instead of panel.getId()
Code:
<class name="com.lsr.eclipse.framework.core.model.PanelRedeemAddress" table="panel_redeem_address">
<id column="panel_id" name="id" type="java.lang.Long">
<generator class="foreign">
<param name="property">panel</param>
</generator>
</id>
<one-to-one name="panel" class="com.lsr.eclipse.framework.core.model.Panel" constrained="true"/>
<property column="street1" length="50" name="street1" not-null="true" type="java.lang.String"/>
<property column="street2" length="50" name="street2" type="java.lang.String"/>
<property column="city" length="25" name="city" not-null="true" type="java.lang.String"/>
<property column="state" length="4" name="state" not-null="true" type="java.lang.String"/>
<property column="zipcode" length="15" name="zipcode" not-null="true" type="java.lang.String"/>
<property column="phone" length="25" name="phone" type="java.lang.String"/>
</class>