HHH-16678 Add back query literal initialization assertion
This commit is contained in:
parent
6984c4a9e8
commit
b0419a8fe2
|
@ -34,6 +34,7 @@ public class QueryLiteral<T> implements Literal, DomainResultProducer<T> {
|
|||
private final SqlExpressible expressible;
|
||||
|
||||
public QueryLiteral(T value, SqlExpressible expressible) {
|
||||
assert value == null || expressible.getJdbcMapping().getJdbcJavaType().isInstance( value );
|
||||
this.value = value;
|
||||
this.expressible = expressible;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue