Seems like Hibernate.createClob(Reader reader, int length) is deprecated in version 3.6.x And it suggests to use Use LobHelper.createClob(Reader, long)
Hibernate.createClob(Reader reader, int length)
LobHelper.createClob(Reader, long)
I was using the createBlob(bytes[]) from that class. I created a new class and the following method
public static Blob createBlob(byte[] bytes) { return NonContextualLobCreator.INSTANCE.wrap(NonContextualLobCreator.INSTANCE.createBlob(bytes)); }