After https://hibernate.atlassian.net/browse/HHH-15438 we will not register certain JdbcType and DdlType entries anymore if the JDBC driver classes for reading/writing data are not visible. Very often, we can handle this by introducing casts for expressions that infer this type e.g. parameter markers for insert etc. I suggest we introduce the following default methods in JdbcType:
default String wrapReadExpression(String readExpression) {
return readExpression;
}
default String wrapWriteExpression(String writeExpression) {
return writeExpression;
}
We can then register custom JdbcType implementations that bind/extract e.g. JSON as plain String. For geometry, geography, interval and inet we will probably also have to encode the data as String and hence also wrap the readExpression with a cast to String. |