hibernate3.2在spring中的配置

<!-- SessionFactory -->
    
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
        
<property name="dataSource" ref="dataSource"/>
        
<property name="hibernateProperties">
            
<props>
                 
<prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop>
                 
<prop key="hibernate.hbm2ddl.auto">none</prop>
            
</props>
        
</property>
        
<property name="annotatedClasses">
            
<list>
                
<value>com.game.products.model.Products</value>
            
</list>
        
</property>
            
    
</bean>

你可能感兴趣的:(hibernate3.2在spring中的配置)