Reputation: 97
I want to insert data from multiple objects (eg. from 2 Spring Data entities); I know how to make left join from multiple entities, but I'm not sure how to make Custom object from that...
Upvotes: 3
Views: 603
Reputation: 10623
In Vaadin Grid
is typed using generics. For example: Grid<Person>
. You cannot have multiple types here.
If you need to join data from multiple objects, you must create a middle layer to produce DTO (Data Transfer Object). The DTO collects properties from multiple source objects. This is a common practice in more complex business application, not limited to Vaadin.
Upvotes: 3