Hi: I am trying to set the property "hibernate.default_batch_fetch_size". I added a hibernate.properties file to my WEB-INF folder with the following line:
Code:
hibernate.default_batch_fetch_size=16
In my app-servlet.xml file I have:
Code:
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>/WEB-INF/jdbc.properties</value>
<value>/WEB-INF/hibernate.properties</value>
<value>/WEB-INF/mail.properties</value>
<value>/WEB-INF/classes/constants.properties</value>
</list>
</property>
</bean>
When the application starts I get:
Code:
INFO [SettingsFactory.buildSettings 187] Default batch fetch size: 1
How can I set the default batch fetch size to 16?
Michael.