HHH-16678 Add back query literal initialization assertion

This commit is contained in:
Marco Belladelli 2023-06-14 16:06:37 +02:00
parent 6984c4a9e8
commit b0419a8fe2
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ public class QueryLiteral<T> implements Literal, DomainResultProducer<T> {
private final SqlExpressible expressible; private final SqlExpressible expressible;
public QueryLiteral(T value, SqlExpressible expressible) { public QueryLiteral(T value, SqlExpressible expressible) {
assert value == null || expressible.getJdbcMapping().getJdbcJavaType().isInstance( value );
this.value = value; this.value = value;
this.expressible = expressible; this.expressible = expressible;
} }