org.hibernate.hql.internal.ast.QuerySyntaxException: agency is not mapped
阅读更多今天在使用hibernate+springmvc框架,做一个查询时出现了一个错误,sql语句大体为:selectcount(id)fromaddresswhereagency_idin(selectidfromagencywherepidslike'%,42,'orid=42)andshflag=0orderbyiddesc在mysql查询中能够正常运行,在控制台中报错java.lang.