views:

453

answers:

1

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?

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
I think you mean line 409.
super_aardvark
Thanks. Shouldn't be trusting line numbers anyway - that link might point to some other version in the future.
Alan