I am trying to select elements which contain a specific value inside of a map.
This should be possible with JPA's Map<KEY, VALUE>.
If I try to use them like this:
SELECT td FROM ToDo td JOIN td.customProperties cp WHERE KEY(cp) = :propertyName AND VALUE(cp) = :propertyValue ORDER BY td.createdTimeMillis
I get the "Unexpected query token 'KEY'" error.
Is there another way to do this and I am just using the wrong syntax?