在SSH中hibernate报错(在线等待)这个类发生异常:$P
2010-11-16 20:20:24A***
这个类发生异常:$Proxy0这个方法发生了异常:login方法参数[0]:entity.Excep ():usersisnotmapped[fromuserswherename=?andpassword=?]org.hibernate.hql.ast.QuerySyntax [fromuserswherename=?andpassword=?]主要报错去上DAO中login方法publicUserslogin(Usersusers)throwsSQLException,DataAccessException,HibernateException{//TODOAuto-generatedmethodstubSystem.out.println("DAo连接前");Queryquery=this.getSession().createQuery("fromuserswherename=?andpassword=?");query.setString(0,users.getName());query.setString(1,users.getPassword());Objectobj=query.uniqueResult();System.out.println("DAo连接后");if(obj!=null){return(Users)obj;}returnnull;}在SSH中hibernate报错(在线等待)这个类发生异常:$Proxy0这个方法发生了异常:login方法参数[0]:entity.Excep():users?
最佳回答
2010-11-17 11:36:15
2010-11-16 20:59:01
很赞哦! (160)
相关文章
- hibernate中映射出错在运行
- hibernate的lazy和fe
- 在hibernate中没有主外键关系时怎
- SSH三大框架有什么区别stucts2
- 如果用ssh3个框架整合的话,一般都怎
- 在Hibernate中的分页查询原理是
- Hibernate中Session只是
- hibernate查询问题dao中方
- Hibernate中所有包作用的讲解是
- 在Eclipse中,如何将项目中的src
- jsp中jqgrid前台不显示数据。关
- hibernate2根据sql查询我们
- 为什么执行hql语句时说语句错误在S
- org.hibernate.excep
- 用语言开发Web项目需要怎样的逻辑?W
- hibernate中多对多关系为什么用S
- 在做一个更新时,执行query.exe
- 如何用SSH实现分页?如题,如何用SS
- SSH如何重建Linux中的用户邮件箱
- 请教hibernate问题有一个表无主
- ActiveServerPages