`

异常总结

阅读更多
1、org.hibernate.hql.ast.QuerySyntaxException:

MainData is not mapped [update MainData as o set o.state=?1 where o.ouid in (?2,?3,?4,?5,?6,?7)]

原因:MainData对象无法被映射,因为MainData对象是一个非常特殊的对象,总会出现在各种jar中.所以在操作MainData对象时需要加上具体的package引用地址: update com.ptn.entity.MainData as o set o.state=?1 where o.ouid in (?2,?3,?4,?5,?6,?7)
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics