개체 및 SlabPDO SlabInstructions에 대한 매핑 참조가있는 슬래브 개체에 대한 매핑이 있습니다. 나는 선택을하고 싶습니다. 항상 SlabPDO 객체를 가지고 있어야하고 필요할 때만 SlabInstructions를로드하십시오. 이 일을 할 수있는 방법이 있습니까?필요한 경우에만 개체로드
<id name="Id" column="Id_Slab" type="Int64">
<generator class="Geraes.GLib.GDomainBasis.CustomTableHiLoGenerator, GLib.GDomainBasis" />
</id>
<property name="Mill" column="Mill" type="String" length="2" not-null="true" />
<property name="SlabId" column="Slab_Id" type="String" length="20" not-null="true" />
<property name="PieceId" column="Piece_Id" type="String" length="20" not-null="true" />
<one-to-one name="SlabPDO" class="SlabPDO" cascade="all" fetch="join"/>
<set name="SlabInstructions" generic="true" inverse="true" lazy="false" cascade="all" fetch="join">
<key column="Id_Slab" />
<one-to-many class="SlabInstruction"/>
</set>
베스트 감사합니다 : 매핑의 예를 아래에! 이 두 가지 매핑 속성 lazy="true"
fetch="select"
이 문서 http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/performance.html#performance-fetching
상담에 관한
는
하십시오입니다. – ChrisF