hibernate-orm icon indicating copy to clipboard operation
hibernate-orm copied to clipboard

HHH-15443 Allow JdbcType to wrap read and write expressions

Open beikov opened this issue 1 year ago • 2 comments

https://hibernate.atlassian.net/browse/HHH-15443

beikov avatar Aug 23 '22 12:08 beikov

I'm not sure I like what's going on here, but that could just be because I don't understand it. Could we talk it over sometime?

gavinking avatar Aug 23 '22 18:08 gavinking

OK, so after discussing offline, my suggestion is that it would be better if this worked by having the Type double-dispatch back to the Dialect, and let the Dialect render the SQL.

The justification for this is: the generated SQL in principle depends on both the Type and the Dialect, and the SQL syntax in principle is a responsibility of the dialect.

gavinking avatar Aug 24 '22 11:08 gavinking