hibernate 返回值 为null
通过hibernate查询数据库,传入参数都没错,就是找不到,数据库里有,application对hibernate测试成功,用在ssh2中就不行了能生成SQL查询语句,...
通过hibernate查询数据库,传入参数都没错,就是找不到,数据库里有,application对hibernate测试成功,用在ssh2中就不行了 能生成SQL查询语句,也没有错误,就是不返回值。
一下是自动生成SQL:
Hibernate: select usertype0_.UserTypeID as UserTypeID18_, usertype0_.UserTypeName as UserType2_18_, usertype0_.CreateDateTime as CreateDa3_18_, usertype0_.OperatorID as OperatorID18_, usertype0_.LastModifyTime as LastModi5_18_, usertype0_.LastOperatorID as LastOper6_18_, usertype0_.Remark as Remark18_ from UserType usertype0_ where usertype0_.UserTypeName='工商局' 展开
一下是自动生成SQL:
Hibernate: select usertype0_.UserTypeID as UserTypeID18_, usertype0_.UserTypeName as UserType2_18_, usertype0_.CreateDateTime as CreateDa3_18_, usertype0_.OperatorID as OperatorID18_, usertype0_.LastModifyTime as LastModi5_18_, usertype0_.LastOperatorID as LastOper6_18_, usertype0_.Remark as Remark18_ from UserType usertype0_ where usertype0_.UserTypeName='工商局' 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询