I went back to a 5.1.*, this time 5.1.12 and it worked fine.
I can't understand why the "Large Objects may not be used in auto-commit mode" can center with the transition from hibernate 5.1 to 5.2, what do you think?