Is there any posibility to do something like this. I've got two entities: Item and Holder. I need to join Holder to item, to get hashmap:
HashMap> items = new HashMap>();
Key in this hashmap - value of name column. Object with the same name are grouped in List and joined by itemId
class Item {
long id,
String name
}
class Holder {
long itemId
HashMap<String,List<Item>> items = new HashMap<String,List<Item>>();
}
Any idea?:) Thanks for help ;)