-
注意大小写Hibernate
2009-03-30
分类:
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://yourin.blogbus.com/logs/37244123.html
错误:xception in thread "main" org.hibernate.hql.ast.QuerySyntaxException: user is not mapped [from user order by user_name]
解释:User类是大写的,而
session.createQuery("from user");
中用的是小写,所以报错!
session.createQuery("from User");
才正确
随机文章:
获取对象的绝对位置 2009-06-12关于PHP的MYSQL_AFFECTED_ROWS()函数 2009-03-11TSQL的count性能比较 2009-01-30the Great Google's Genes 2008-10-30
收藏到:Del.icio.us







