org.hibernate.hql.ast.QuerySyntaxException: Onu is not mapped [from Onu o where o.instanceid =10]
1、就是你的from是实体类而不是表名
2、hibernate配置文件中没有加入相应的映射文件<mapping resource=" " />
org.hibernate.hql.ast.QuerySyntaxException: Onu is not mapped [from Onu o where o.instanceid =10]
1、就是你的from是实体类而不是表名
2、hibernate配置文件中没有加入相应的映射文件<mapping resource=" " />