Hibernate version: 3.0.5
Mapping documents:
Code:
<class name="Module" table="c_mod_v2">
<composite-id>
<key-property name="ModNo" column="mod_no" type="java.lang.Integer"/>
<key-property name="ClientBpCd" column="client_bp_cd" type="java.lang.String" />
<key-property name="ClientOdsCd" column="client_ods_cd" type="java.lang.String" />
</composite-id>
<property name="ChainNb" column="chain_nb" type="java.lang.String" />
<property name="ClustNb" column="clust_nb" type="java.lang.String" />
<property name="ModClstCd" column="mod_clst_cd" type="java.lang.String" />
<property name="ModNm" column="mod_nm" type="java.lang.String" not-null="true" />
<property name="ModTyCd" column="mod_ty_cd" type="java.lang.String" />
<property name="NbSlots" column="nb_slots" type="java.lang.Integer" />
<property name="RackNo" column="rack_no" type="java.lang.Integer" not-null="true" lazy="true"/>
<property name="CUid" column="c_uid" type="java.lang.String" not-null="true" lazy="true" />
<property name="CDt" column="c_dt" type="java.util.Date" not-null="true" lazy="true" />
<property name="UUid" column="u_uid" type="java.lang.String" lazy="true"/>
<property name="UDt" column="u_dt" type="java.util.Date" lazy="true"/>
<property name="SusyTxCd" column="susy_tx_cd" type="java.lang.String" lazy="true"/>
<property name="RecStat" column="rec_stat" type="java.lang.Short" not-null="true" lazy="true"/>
</class>
In rare occasions I would like to also load the attributes which are specified with lazy="true". Hibernate.initialize() seems to only work with relations.
Is there an equivalent for 'plain' attributes?
Thanks.