How do you translate Hibernate class mappings to a Spring application context?

前端 未结 3 678
滥情空心
滥情空心 2021-02-02 03:12

How do you configure the Hibernate class mappings of class org.springframework.orm.hibernate3.LocalSessionFactoryBean in the Spring application context? I want to move the sess

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 03:34

    I was also facing the same issue, and this worked for me -

    
        
            
        
        
        
            
                com.odeon.audit.dao.entity.AuditLogEntity
                com.odeon.audit.dao.entity.AuditLogApplicationEtity
                com.odeon.audit.dao.entity.AuditLogModuleEntity
                com.odeon.audit.dao.entity.AuditLogOperationEntity
            
        
        
            
                #{auditCoreProp.getString('jdbc.dialect')}
                #{auditCoreProp.getString('jdbc.show_sql')}
                #{auditCoreProp.getString('jdbc.hbm2ddl.auto')}
                
                
            
        
    
    

提交回复
热议问题