• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to avoid loading <joined-subclass> of parent hbm in Child hbm  RSS feed

Geet Chaudhary
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a parent hbm file (CodeDetail.hbm.xml) that contains other joined-subclass in it and also have hbm that calls this (B.hbm.xml) .
Example :

CodeDetail.hbm.xml :-

<class name="com.pcc.services.bdm.model.CodeDetail" table="CD_DTL"
lazy="true" dynamic-insert="true" dynamic-update="false">

<property name="createdTime" type="java.util.Date" update="false"
insert="true" column="creatn_tmstmp" />

name="com.pcc.services.bdm.model.AccountReceivableTermsType" table="ar_trms_cd">
<key column="ar_trms_cd" />

B.hbm.xml :- That calls CodeDetail.hbm.xml using many-to-one mapping.

<many-to-one name="attributeCdDtlCd"
class="com.pcc.services.bdm.model.CodeDetail" outer-join="true"
column="atrbt_cd_dtl_cd" />
<many-to-one name="status"

My doubt is : When we use B.hbm.xml file, it will load all the attributes as well as </joined-subclass> of CodeDetail.hbm.xml file.
But I want to load only the <property name> of CodeDetail.hbm.xml file.

So, is there any option so that I can avoid </joined-subclass> of CodeDetail.hbm.xml file to get loaded in B.hbm.xml .

Many Thanks ...

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!