请问,Hibernate的组件映射componet,可以延迟加载吗?

如题,

<hibernate-mapping>
<class name="org.sakaiproject.model.model.Teacher" table="teacher"
lazy="true">
<id name="zgh" type="string">
<column name="ZGH" length="10" />
<generator class="assigned" />
</id>
       ....................................
<component name="teaDetail"
class="org.sakaiproject.model.model.TeacherDetail" lazy="true">
..........................
</component>
</class>
</hibernate-mapping>



hibernate的component标签,究竟能不能lazy load

怎么感觉lazy="true"和lazy="false"
出来的sql是一样的.

你可能感兴趣的:(sql,Hibernate)