Hibernate中用proxy实现类的延迟加载

 能够在 .xml 文件中指定 lazy=”true” 这个属性来实现:   <class name="com.test.Student" table="student" lazy="true"> 这种方式等价于 <class name="com.test.Student" table="student" proxy="com.test.Student">   这样 Hibernate 就会自动继
相关文章
相关标签/搜索