I have a HashMap<String, Float> paramMap
Where the key is the id of entity Invoice and the value is some calculation.
JPA allowes this map to be set as a parameter with name "paramMap".
Is it possible to use the map in the jpql(hql) in the following manner? (the query is simplified for the example but it captures the esence of my inquery)
SELECT Invoice.id as key, :paramMap[Invoice.id] as value from Invoice Invoice