Changed hibernate batch size, fix some warnings