@see http://blog.youkuaiyun.com/kiss_vicente/article/details/6942666
org.hibernate.hql.ast.QuerySyntaxException: com.xxx.model.InactiveGameInfoModel is not mapped [from com.xxx.model.InactiveGameInfoModel infomodel where infomodel.userId=:id]
上面的异常的抛出主要有几个方面:1、最容易想到的,就是你的from是实体类而不是表名,这个应该大家都知道,注意大小写
2、使用annotation 或者xml的方式,忘了映射。
我的错误是全类名写错了。
应该是: com.xxx.model.inactive.InactiveGameInfoModel
却写成了:com.xxx.model.InactiveGameInfoModel。