MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » 为什么小弟我执行hibernate查询的时候,会多执行了

为什么小弟我执行hibernate查询的时候,会多执行了更新操作呢》?

www.MyException.Cn  网友分享于:2013-02-01  浏览:42次
为什么我执行hibernate查询的时候,会多执行了更新操作呢》??
同上.
Java code

2011-03-28 09:09:44 [日志信息] Write Para1:null
2011-03-28 09:09:44 [日志信息] Write Para1:/user.do
2011-03-28 09:09:44 [日志信息] Write Para1:method=getList
2011-03-28 09:09:44 [日志信息] Write Para1:/doUser.do
Hibernate: select count(*) as col_0_0_ from kejia.dbo.td_user tduser0_
Hibernate: select top 18 tduser0_.id as id0_, tduser0_.userName as userName0_, tduser0_.password as password0_, tduser0_.name as name0_, tduser0_.role as role0_, tduser0_.addDate as addDate0_ from kejia.dbo.td_user tduser0_
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
Hibernate: update kejia.dbo.td_user set userName=?, password=?, name=?, role=?, addDate=? where id=?
{"total":19,"data":[{"id":19,"name":"asfdasfd","role":0,"userName":"admin","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"admin"},{"id":20,"name":"dfasdf","role":0,"userName":"asdf222","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"as"},{"id":21,"name":"sdfasdf","role":0,"userName":"asdf","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"asfa"},{"id":22,"name":"3333","role":0,"userName":"dddd","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"dddd"},{"id":23,"name":"3333","role":0,"userName":"3333","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"333"},{"id":24,"name":"2323","role":0,"userName":"232","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"323"},{"id":25,"name":"23424","role":0,"userName":"234234","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"234"},{"id":26,"name":"234234","role":0,"userName":"234234","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"234"},{"id":28,"name":"4234234","role":0,"userName":"2342","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"34234"},{"id":29,"name":"2323","role":0,"userName":"22","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"323"},{"id":30,"name":"33","role":0,"userName":"333","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"33"},{"id":33,"name":"孙超","role":0,"userName":"sunchao","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"shuxhao"},{"id":34,"name":"23","role":0,"userName":"23","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"23"},{"id":37,"name":"bbbbb","role":0,"userName":"aaaaaaaaa","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"bbbb"},{"id":38,"name":"cccccccc","role":0,"userName":"aaaaaaa","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"bbbbbbbbbb"},{"id":39,"name":"haha","role":0,"userName":"hello","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"mima"},{"id":40,"name":"3333","role":0,"userName":"33333","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"3333"},{"id":41,"name":"ddddd","role":0,"userName":"ddddd","addDate":{"time":1301274584796,"minutes":9,"seconds":44,"hours":9,"month":2,"timezoneOffset":-480,"year":111,"day":1,"date":28},"password":"ddd"}],"success":true}



文章评论

我的丈夫是个程序员
我的丈夫是个程序员
旅行,写作,编程
旅行,写作,编程
中美印日四国程序员比较
中美印日四国程序员比较
程序员周末都喜欢做什么?
程序员周末都喜欢做什么?
鲜为人知的编程真相
鲜为人知的编程真相
60个开发者不容错过的免费资源库
60个开发者不容错过的免费资源库
“懒”出效率是程序员的美德
“懒”出效率是程序员的美德
初级 vs 高级开发者 哪个性价比更高?
初级 vs 高级开发者 哪个性价比更高?
Java程序员必看电影
Java程序员必看电影
程序员应该关注的一些事儿
程序员应该关注的一些事儿
Java 与 .NET 的平台发展之争
Java 与 .NET 的平台发展之争
做程序猿的老婆应该注意的一些事情
做程序猿的老婆应该注意的一些事情
为啥Android手机总会越用越慢?
为啥Android手机总会越用越慢?
为什么程序员都是夜猫子
为什么程序员都是夜猫子
当下全球最炙手可热的八位少年创业者
当下全球最炙手可热的八位少年创业者
代码女神横空出世
代码女神横空出世
如何成为一名黑客
如何成为一名黑客
如何区分一个程序员是“老手“还是“新手“?
如何区分一个程序员是“老手“还是“新手“?
程序员的一天:一寸光阴一寸金
程序员的一天:一寸光阴一寸金
5款最佳正则表达式编辑调试器
5款最佳正则表达式编辑调试器
我是如何打败拖延症的
我是如何打败拖延症的
聊聊HTTPS和SSL/TLS协议
聊聊HTTPS和SSL/TLS协议
10个调试和排错的小建议
10个调试和排错的小建议
一个程序员的时间管理
一个程序员的时间管理
Web开发者需具备的8个好习惯
Web开发者需具备的8个好习惯
那些争议最大的编程观点
那些争议最大的编程观点
总结2014中国互联网十大段子
总结2014中国互联网十大段子
十大编程算法助程序员走上高手之路
十大编程算法助程序员走上高手之路
程序员的鄙视链
程序员的鄙视链
Web开发人员为什么越来越懒了?
Web开发人员为什么越来越懒了?
科技史上最臭名昭著的13大罪犯
科技史上最臭名昭著的13大罪犯
不懂技术不要对懂技术的人说这很容易实现
不懂技术不要对懂技术的人说这很容易实现
编程语言是女人
编程语言是女人
什么才是优秀的用户界面设计
什么才是优秀的用户界面设计
我跳槽是因为他们的显示器更大
我跳槽是因为他们的显示器更大
 程序员的样子
程序员的样子
程序员和编码员之间的区别
程序员和编码员之间的区别
老程序员的下场
老程序员的下场
老美怎么看待阿里赴美上市
老美怎么看待阿里赴美上市
程序员最害怕的5件事 你中招了吗?
程序员最害怕的5件事 你中招了吗?
程序员都该阅读的书
程序员都该阅读的书
看13位CEO、创始人和高管如何提高工作效率
看13位CEO、创始人和高管如何提高工作效率
程序员必看的十大电影
程序员必看的十大电影
要嫁就嫁程序猿—钱多话少死的早
要嫁就嫁程序猿—钱多话少死的早
程序员眼里IE浏览器是什么样的
程序员眼里IE浏览器是什么样的
软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有