1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">${db.dialect}</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
<prop
key="hibernate.bytecode.use_reflection_optimizer">
false
</prop>
<prop key="hibernate.jdbc.batch_size">1000</prop>
<prop key="current_session_context_class">thread</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
</property>
</bean> |