• Post Reply Bookmark Topic Watch Topic
  • New Topic

hibernate.jdbc.fetch_size and @BatchSize

nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone knows the difference of this in persistence.xml

<property name="hibernate.jdbc.fetch_size" value="3"/>

and that in entity-class:
@OneToMany(mappedBy = "..", fetch=FetchType.EAGER)
private Set<Hobby> hobbies;

The documenation says that

"hibernate.jdbc.fetch_size: A non-zero value determines the JDBC fetch size (calls Statement.setFetchSize()). "

Is it both the same ?
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!