java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()

前端 未结 4 977
天涯浪人
天涯浪人 2021-01-05 19:54

I have a maven project that uses spring, hibernate (3.6.4), GWT(2.3), drools,.... Everything used to work fine till I began using hibernate OneToMany, ManyToMany relations..

4条回答
  •  伪装坚强ぢ
    2021-01-05 20:46

    It causes with use of persistence-api annotations in entity classes, to resolve this problem let your classpath contains

            
                org.hibernate
                hibernate-annotations
                3.4.0.GA
                provided
            
    

    this dependency to use of ejb3-persistence.jar

提交回复
热议问题