java.lang.IncompatibleClassChangeError: class org.hibernate.cfg.ExtendedMappings has interface org.hibernate.cfg.Mappings as super class
hibernate3.5中的hibernate3.0包,已经包涵了hibernate-annotations,hibernate-commons-annotations.jar,commons-collections 这三个包,所以你要去掉commons-collections 包试试,
或许就成功了!
========================
hxzon:
移除hibernate-annotations,hibernate-commons-annotations.jar,成功。
移除了persistence.jar和ejb3-persistence.jar,添加了hibernate-jpa-2.0-api-1.0.0.Final.jar。
物料移除@JoinColumn(name ="code",referencedColumnName="code" )注解
class org.hibernate.cfg.ExtendedMappings has interface org.hibernate.cfg.Mappings as super class
最新推荐文章于 2021-02-24 11:39:26 发布