@Lob byte[] treated as PrimitiveByteArrayTypeDescriptor rather than BlobTypeDescriptor

Description

I have a Payload entity with a byte[] field that is annotated with @Lob. Upon lazy initialization, it is treated as a PrimitiveByteArrayTypeDescriptor rather than a BlobTypeDescriptor, which leads to the byte[] being turned into a String (https://hibernate.atlassian.net/browse/HHH-12370). A BlobTypeDescriptor would correctly not try to log the contents of the byte[].

However, looking at the database table definition, it is correctly identified as a BLOB:

Is there something I am missing about how to get Hibernate to recognize it as a blob type?

Environment

None

Assignee

Unassigned

Reporter

Phil Godzin

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure