Just for reference - it seems like the actual backward compatibility property name is:
hibernate.dialect.oracle.prefer_long_raw
and not
hibernate.dialect.oracle.prefer_longvarbinary