Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYWNlOTc1YzYx...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-15443?atlOrigin=eyJpIjoiYWNlOT...
) HHH-15443 (
https://hibernate.atlassian.net/browse/HHH-15443?atlOrigin=eyJpIjoiYWNlOT...
) Support custom DDL types also if JDBC driver classes are invisible (
https://hibernate.atlassian.net/browse/HHH-15443?atlOrigin=eyJpIjoiYWNlOT...
)
Issue Type: Improvement Affects Versions: 6.1.2 Assignee: Unassigned Components:
hibernate-core Created: 08/Aug/2022 10:37 AM Fix Versions: 6.1.3 Priority: Major Reporter:
Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
After
https://hibernate.atlassian.net/browse/HHH-15438 (
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.
(
https://hibernate.atlassian.net/browse/HHH-15443#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15443#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100204- sha1:3bd651e )