In the hibernate mapping file I use property formula to get any value.
<property name="price" type="double" formula="(select SUM(amount) ...) />
But it allows to get only 1 row. How can I get lisf of rows? I understand that "property" is not suitable, but it's impossible to add formula to set or list.
Of course I just want to get values without adding new classes. I just have the sql request and expect to get list or set for existed class.