org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: Use of the same entity name twice: RegionData
==============================================
多是映射文件配置错误。
检查hibernate.cfg.xml和映射文件RegionData.hbm.xml配置情况。
如果hibernate.cfg.xml里的<mapping class=和<mapping resource=没错的话,多是RegionData.hbm.xml里<class name="。。。。RegionData“...这里RegionData.java的路径写错了。
http://hi.baidu.com/jsjok/blog/item/e24e1b3fe22bdbdd9e3d622d.html