Hibernate criteria.setFetchSize is not working as expected
<p>I am working on performance improvement. We are using both Hibernate Criteria and Named Query to retrieve data from database.
In our application we are retrieving more rows from database and performing some Java logic so I want to fetch more rows at a time from Database to avoid network trips to database.
As the default fetch size for oracle database is 10 I have set this to 400 to the criteria object as below.</p>

<pre><code>Criteria crit = getSession().createCriteria(Phone.class);
crit.setFetchSize(400);
</code></pre>

<p>I did not notice any improvement in the response times.
I have noticed improvement when I set the higher fetch size on NamedQuery as below.</p>

<pre><code>Query query = session.getNamedQuery("getPhoneList");
query.setFetchSize(400);
</code></pre>

<p>Any suggestions why <code>crit.setFetchSize(400);</code> is not working as expected.</p>