After a lot of thinking, here is what I will do. In terms of implicit type determination, I will switch it up so that for Oracle 12c we:
- recognize byte[] as MaterializedBlobType (Types#BLOB) rather than BinaryType (Types#LONGVARBINARY)
- recognize Byte[] as WrappedMaterializedBlobType (Types#BLOB) rather than WrapperBinaryType (Types#LONGVARBINARY).
I will do this in master (5.1), but started a discussion on hibernate-dev about whether we should back-port that change to Oracle12cDialect. |