Hibernate “PreInsertEvent.getSource()” NoSuchMethodError

前端 未结 3 702
执念已碎
执念已碎 2020-12-20 00:28

I\'m recieving the following error when trying to do inserts:

java.lang.NoSuchMethodError : org.hibernate.event.PreInsertEvent.getSource()Lorg/hibernate/

3条回答
  •  猫巷女王i
    2020-12-20 00:45

    I found a solution, but I'm not sure it's correct -- anyone with a better, please advise:

    Added a reference to cglib, and explicity excluded hibernate (was including 3.2)

     
        
            cglib
            cglib
            2.2
        
        
            commons-lang
            commons-lang
            2.3
        
        
            org.hibernate
            hibernate-annotations
            3.4.0.GA
        
        
            org.hibernate
            hibernate-commons-annotations
            3.3.0.ga
            
                
                    org.hibernate
                    hibernate
                
            
        
        
            org.hibernate
            hibernate-core
            3.3.1.GA
        
        
            org.hibernate
            hibernate-validator
            3.1.0.GA
        
        
            org.hibernate
            hibernate-entitymanager
            3.4.0.GA
        
    
        
            commons-lang
            commons-lang
            2.3
        
        
            commons-collections
            commons-collections
            3.2.1
        
    
    

提交回复
热议问题