首页 > 移动平台 > 详细

(转)(异常分析) org.hibernate.MappingException: entity class not found

时间:2015-11-07 13:28:19      阅读:763      评论:0      收藏:0      [点我收藏+]

sh整合时可能会遇到很多问题,常见的问题之一 

        org.hibernate.MappingException: entity class not found (实体类没有找到)

可能原因:若持久化类为:User.java 

                   对应的hibernate映射文件为:User.hbm.xml 

                  一般系统自动生成的映射文件为: 

                        <hibernate-mapping> 


                                    <class name="User" table="...... 

                                        ....... 

                       </hibernate-mapping> 

                  要将class路径改为绝对路径。若User.java在包com.ssh.bean 

                 则要改为<class name="com.ssh.bean.User" ......>

(转)(异常分析) org.hibernate.MappingException: entity class not found

原文:http://www.cnblogs.com/com-wushuang/p/4944838.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!