hibernate :is not mapped

org.springframework.orm.hibernate3.HibernateQueryException: XXX is not mapped[xxx],最近做一个小项目第二次碰到这个问题,但是还是忘记上次是怎么解决的,所以还是来记录一下吧,问题其实出在HQL查询时 “FROM” 后面要写对象的名称而不是表的名称,hibernate查询的是对象!

原文地址:https://www.cnblogs.com/3QAll/p/4531344.html