hibernate load 和 get 的一点区别
来源:互联网 发布:什么是seo 编辑:程序博客网 时间:2024/05/19 09:16
/**
* Return the persistent instance of the given entity class with the given identifier,
* assuming that the instance exists. This method might return a proxied instance that
* is initialized on-demand, when a non-identifier method is accessed.
* <br><br>
* You should not use this method to determine if an instance exists (use <tt>get()</tt>
* instead). Use this only to retrieve an instance that you assume exists, where non-existence
* would be an actual error.
*
* @param theClass a persistent class
* @param id a valid identifier of an existing persistent instance of the class
* @return the persistent instance or proxy
* @throws HibernateException
*/
public Object load(Class theClass, Serializable id) throws HibernateException;
/**
* Return the persistent instance of the given entity class with the given identifier,
* or null if there is no such persistent instance. (If the instance is already associated
* with the session, return that instance. This method never returns an uninitialized instance.)
*
* @param clazz a persistent class
* @param id an identifier
* @return a persistent instance or null
* @throws HibernateException
*/
public Object get(Class clazz, Serializable id) throws HibernateException;
- hibernate load 和 get 的一点区别
- Hibernate的get和load的区别
- Hibernate的get和load的区别
- Hibernate的get和load的区别
- hibernate的load和get的区别
- hibernate的load()和get()的区别
- hibernate的load()和get()的区别
- Hibernate中load和get的区别
- Hibernate load()和get()的区别
- Hibernate get()和load() 的区别
- Hibernate中get和load的区别
- Hibernate中get和load的区别
- Hibernate之get和load的区别
- hibernate的get() load() 和find()区别
- hibernate中get和load的区别
- Hibernate中get和load的区别
- hibernate 中get()和load()的区别
- hibernate load和get的区别
- Android 中文件类型与MIME的匹配表
- codeblocks+mingw+qt 组合的理解
- 基于wince6.0的流媒体播放《二》
- Windows SharePoint Service 3.0删除
- json2方法
- hibernate load 和 get 的一点区别
- JAVA进行类型转换与字节数组与JAVA类型转换
- 如果编程语言是汽车[转]
- 使用WTL::CBitmap时需要注意的一个事项
- 个人日常管理
- 求助IBM RAD7.0
- linux 下的C库函数大全
- QT中Unicode编码与字符串之间的转换
- The ways to paging