I have a problem. how can i return map as query in jpa ?
Map<string, User> userMap = em.createQuery("select new map(u.id, *)
from user u"
I want to return map as query but I don't know how to.
and I don`t want to return map using to iterate list. like as the below
How to return HashMap from JPA query?
can someone help me ?
in advance thank you.