日期:2014-05-18  浏览次数:20843 次

为什么我执行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,"