how to return Map<Key, Value> with HQL
问题 i have a table Permission : id name desc what i am doing right now is to make a query that returns a permission object then put the values in the map programmatically 1- But i was wondering if it's possible to make an HQL (or native sql if not possible) to select the permission_id , permission_name and return them in a map. 2- is it possible to return map in one to many relationship instead of following list or set @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY) @JoinTable(name