hibernate:把一个文件夹下的配置文件引入

(来自于http://www.iteye.com/topic/34)
dada:::

<bean id="sessionFactory" 
    class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> 
    <property name="dataSource"> 
        <ref local="dataSource" /> 
    </property> 
    <property name="mappingDirectoryLocations"> 
        <list> 
            <value> 
                classpath*:/model/sample/hbm  
            </value> 
        </list> 
    </property> 
    <property name="hibernateProperties"> 
        <props> 
            <prop key="hibernate.dialect"> 
                ${hibernate.dialect}  
            </prop> 
            <prop key="hibernate.show_sql"> 
                ${hibernate.show_sql}  
            </prop> 
            <prop key="hibernate.cache.use_query_cache"> 
                ${hibernate.cache.use_query_cache}  
            </prop> 
            <prop key="hibernate.cache.provider_class"> 
                ${hibernate.cache.provider_class}  
            </prop> 
        </props> 
    </property> 
</bean> 
</code>

你可能感兴趣的:(sql,Hibernate,cache)