I want to provide a custom Batcher for Hibernate to use (for this reason: http://stackoverflow.com/questions/83093/hibernate-insert-batch-with-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?
views:
453answers:
1
A:
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
2009-10-27 19:35:40
I think you mean line 409.
super_aardvark
2009-12-04 02:45:12
Thanks. Shouldn't be trusting line numbers anyway - that link might point to some other version in the future.
Alan
2009-12-17 22:53:32