运行action时出现org.hibernate.hql.ast.QuerySyntaxException: InterRelation is not mapped. 异常,经过检查发现原来是hibernate.cfg.xml配置文件里面没有加入InterRelation 数据库映射文件