Is there a way to configure Hibernate 6.4 to store these fields in a text column directly, without using Large Object storage.
The simplest way, if you want to convert this MyExternalizableType
to json|jsonb|text
for storage.
Is to use the io.hypersistence:hypersistence-utils-hibernate-xx
library.
Note: io.hypersistence:hypersistence-utils-hibernate-63 with hibernate-core:6.4.
@Column(name = "json_data", columnDefinition = "text")
@Type(JsonType.class) // import io.hypersistence.utils.hibernate.type.json.JsonType;
private MyExternalizableType jsonData;
and without modifying the model classes?
The Externalizable
interface may not necessary in such cases(I think).