As mentioned in other comments using
hibernate.temp.use_jdbc_metadata_defaults = false
... fix the annoying message, but can lead to many other amazing problems. The best solution is to simply disable the creation of the context LOB with this:
hibernate.jdbc.lob.non_contextual_creation = true
This will force Hibernate (in my case its 5.3.10.Final) to skip checking the JDBC driver and simply display the following message:
HHH000421: Disabling contextual LOB creation as hibernate.jdbc.lob.non_contextual_creation is true
So far, it seems that this parameter does not cause any problems.
Jacek Prucia May 22 '19 at 12:00 2019-05-22 12:00
source share