hibernate lazy fetch leading json serializ exception
来源:互联网 发布:做一个淘宝网站多少钱 编辑:程序博客网 时间:2024/05/25 08:15
today, i changed a application(synchronized request) to ajax application(asynchronous request),i need send some json data to client.so i use the flex json frame to serialized an object to json data.when i test,the program send a jsonexception to me(i can't remember the reason),i checked my program carfully ,but found nothing.so i google the exception from internet and see somebody said the reason is serialized the object relation with others,i was in a fog because the object which is i want to serialized is not relation with others.so i check my code again. Suddenly,i rememberd that for most entities,we used lazy fetch strategy,maybe is the reason,when you lazy fetch an object through hibernate,hibernate will give you an proxy object,the object type is not same with the real object(use cglib),so,the json frame send exception.i changed the strategy and tested again.right,hehe,i got it.
usually,when we used hibernate to persistence strategy,we using lazy fetch strategy to saving mamory. if you used hibernate,don't foget proxy object,is very important,hehe.
- hibernate lazy fetch leading json serializ exception
- 浅谈hibernate lazy fetch
- hibernate lazy和fetch
- HIbernate lazy fetch
- Hibernate fetch lazy cascade inverse
- hibernate的 lazy 和 fetch
- 【Hibernate】Hibernate的检索策略:lazy、fetch
- Hibernate】Hibernate的检索策略:lazy、fetch
- Hibernate fetch lazy cascade inverse 关键字
- 重新学习 Hibernate fetch lazy cascade inverse
- Hibernate fetch lazy cascade inverse 关键字 【转】
- 学习 Hibernate fetch lazy cascade inverse 关键字
- 学习 Hibernate fetch lazy cascade inverse 关键字
- hibernate的 lazy 和 fetch 如何配置
- 浅谈hibernate(cascade,lazy,inverse,fetch)
- Hibernate中lazy,inverse,cascade,fetch
- hibernate 中fetch=FetchType.LAZY问题
- hibernate的抓取策略(fetch和lazy)
- 使用ZooKeeper解决Hadoop单点故障(single point of failure)
- [转]毕业5年决定你的命运 --------值得所有不甘平庸的人看看
- 创造力来自宽松的环境:Google 办公室图赏
- oracle-merge用法详解
- Android系统文件夹结构解析
- hibernate lazy fetch leading json serializ exception
- C++ primer 习题练习:9.28
- windows访问Hbase数据库的配置
- 2010.1.5 迁移到tomcat5.5
- CSDN无刷新留言
- A-Z Guide to Being an Architect
- Winform 的登录进度条
- symbian安装出现“更新错误”
- example1