Hi Experts,
Say I got a table with columns: id, value, key And I want to make a query so it returns a map object, which the key of map object is the key column, and value of the map object a list/set of the grouped classes?
for example i got data 1 val1 key1 2 val2 key2 3 val3 key1
so the mapping returns a map with 2 keys(key1,key2) and key1 of map contains a list containing the object of id 1 and 2 and key 2 constains a list with only object 2
Is it possible to do this using any hibernate query methods?
|