Looking into this, I found that (as a temporary workaround) you could set the batch size directly on the Session, it does not seem to happen then.