高手求助!!!!!!!!!!!!1

longer84 2007-01-22 11:14:32
2007-01-22 11:11:57,968 [com.ascent.dao.hibernate.CustomerHibernateDAO]-[DEBUG] 根据用户姓名得到用户信息!
Hibernate: select customer0_.customer_id as customer1_, customer0_.cust_name as cust_name, customer0_.password as password, customer0_.email as email from customer customer0_ where (customer0_.cust_name=? ) order by customer0_.customer_id desc
2007-01-22 11:11:58,203 [net.sf.hibernate.util.JDBCExceptionReporter]-[WARN] SQL Error: 0, SQLState: S0022
2007-01-22 11:11:58,203 [net.sf.hibernate.util.JDBCExceptionReporter]-[ERROR] Column 'customer1_' not found.
2007-01-22 11:11:58,218 [net.sf.hibernate.util.JDBCExceptionReporter]-[WARN] SQL Error: 0, SQLState: S0022
2007-01-22 11:11:58,218 [net.sf.hibernate.util.JDBCExceptionReporter]-[ERROR] Column 'customer1_' not found.
2007-01-22 11:11:58,218 [com.ascent.dao.hibernate.CustomerHibernateDAO]-[ERROR] 根据用户姓名获取用户信息失败!
org.springframework.jdbc.BadSqlGrammarException: Bad SQL grammar [] in task 'Hibernate operation'; nested exception is java.sql.SQLException: Column 'customer1_' not found.
java.sql.SQLException: Column 'customer1_' not found.


哪位能看一下这是什么问题!配置文件都没问题!就是跑不过去!检查又检查!。。。。。。。
...全文
185 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
longer84 2007-01-23
  • 打赏
  • 举报
回复
自个顶一下呢!
imA 2007-01-22
  • 打赏
  • 举报
回复
你的hibernate配置跟你的数据库表结构不一样,在你要操作的表中没有customer1_这个字段。
longer84 2007-01-22
  • 打赏
  • 举报
回复
郁闷ing.................
longer84 2007-01-22
  • 打赏
  • 举报
回复
表结构一样的啊!

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧