<!-- Hibernate properties defination -->
<property
name="hibernateProperties">
<props>
<prop
key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
<!--
Create/update
the database tables automatically when the JVM starts
up
<prop key="hibernate.hbm2ddl.auto">create</prop>
-->
<!--
Turn
batching off for better error messages under PostgreSQL <prop
key="hibernate.jdbc.batch_size">0</prop>
-->
<prop
key="hibernate.format_sql">true</prop>
<prop
key="hibernate.query.substitutions">true 1, false 0, yes 'Y', no 'N'</prop>
<prop
key="hibernate.cache.use_query_cache">true</prop>
<prop
key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
<prop
key="hibernate.show_sql">true</prop>
</props>
</property>
spring配置文件中添加hibernate属性---如:show_sql;format_sql
最新推荐文章于 2025-06-05 08:08:27 发布