I want to provide a custom Batcher for Hibernate to use (for this reason: hibernate insert batch with partitioned postgresql), but I want to create a modification of whatever it's already using (BatchingBatcher or NonBatchingBatcher). What's the default value of hibernate.jdbc.factory_class, or how can I figure out which Batcher Hibernate is currently using?
Asked
Active
Viewed 2,234 times
1 Answers
1
See the method createBatcherFactory in this file.
By default, the NonBatchingBatcher is used if the batch size is 0; otherwise the BatchingBatcher is used.
The default batch size is positive, so if the batch size is not set the BatchingBatcher will be used.

Alan
- 51
- 5
-
Thanks. Shouldn't be trusting line numbers anyway - that link might point to some other version in the future. – Alan Dec 17 '09 at 22:53