ssh2 xxx is not mapped

org.springframework.orm.hibernate3.HibernateQueryException: admin is not mapped
[from admin a order by a.id desc]; nested exception is org.hibernate.hql.ast.Que
rySyntaxException: admin is not mapped [from admin a order by a.id desc]

是因为hql语句中 from后面必须是类名 ,因为hibernate是面向对象的。

posted @ 2013-01-21 13:46  dafa168  阅读(225)  评论(0编辑  收藏  举报