QueryDSL SpringBoot Grouping
Я новичок в весенней загрузке, пытаясь сделать следующее
Таблица данных:
FurnitureHeight FurnitureWidth FurnitureDepth
20 35 80
20 45 83
45 102 90
45 35 90
45 67 99
Ожидаемый результат:
20: {
width:[35,45],
depth:[80,83]
}
45: {
width:[35,102,67],
depth:[90,99]
}
Мой класс сущностей выглядит так
public class FurnitureSpecification {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "furnitureheight")
@JsonProperty("furnitureheight")
@Getter
private Integer furnitureheight;
@Column(name = "furniturewidth")
@JsonProperty("furniturewidth")
private Integer furniturewidth;
@Column(name = "furnituredepth")
@JsonProperty("furnituredepth")
private Integer furnituredepth;
}
Любые ссылки на материалы о том, как работает группировка, приветствуются, спасибо за помощь