Spring 3.1, Hibernate 4, SessionFactory

后端 未结 6 2165
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-02 09:46

This was working:



        
6条回答
  •  生来不讨喜
    2020-12-02 10:38

    Use this configuration

    hibernate configuration file:

    
    
    
    
        
    
    

    POM:

        
        
            cglib
            cglib
            ${cglib-version}
            runtime
        
    
        
        
            org.hibernate
            hibernate-entitymanager
            ${org.hibernate-version}
            
        
    
        
       
            org.springframework
            spring-orm
            ${org.springframework-version}
        
    

    i forgot to include the versions, I am using hibernate version: 4.1.2.Final and spring version: 3.1.1.RELEASE, there is an update of hibernate 4.1.3.Final, not tested but I believe it will work fine.

提交回复
热议问题