Hibernate 3.5.x: NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval

前端 未结 6 1060
面向向阳花
面向向阳花 2020-12-01 14:47

I\'m trying to upgrade to Hibernate 3.5.3-FINAL.

When running my unit tests, I now receive the following exception:

java.lang.NoSuchMethodError: java         


        
6条回答
  •  粉色の甜心
    2020-12-01 15:16

    Remove these files from project lib location persistence-api-1.0.jar ejb3-persistence.jar

    add only javax.persistence-2.0.0.jar

    it contains all the required fields and atrributes.

    try this it'll work for your problem.

    Manish Jaiswal

提交回复
热议问题