NPE in TupleMappingModelExpressible constructor with Converter
Description
Attachments
1
- 22 Apr 2024, 10:10 PM
Activity
Show:
Michael Weber April 22, 2024 at 10:42 PM
I just found https://hibernate.atlassian.net/browse/HHH-17701 which seems to be the same issue. So this can be closed.
Queries with tuples composed of attributes coming from subqueries utilizing converters, such as:
SELECT s FROM MyEntity AS s WHERE (s.id, s.creationTime) IN (SELECT t.id, max(t.creationTime) FROM MyEntity AS t WHERE t.endTime >= :start AND t.startTime <= :end AND t.ready = true GROUP BY id)
where
startTime
andendTime
and the query parameters are of a non-standard type that uses a converter. Neither an autoApply converter nor explicit@Convert
converter work.