no persistent classes found for query class: from xxxx解决办法

此警告出现的原因是没有在hibernate.cfg.xml中配置带注释的POJO类,导致无法查询数据库

解决办法

在hibernate.cfg.xml添加

<mapping class="xx.xx.xx">
原文地址:https://www.cnblogs.com/dwwzone/p/12859247.html