Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Vaadin 8 Grid and Entities with OneToMany and OneToOne relationships
Hi,
i have a grid that is init with a beanType like Grid<Person> grid = new Grid<>();
Person has a one to one and a one to many relationships to other objects.
My solution so far:
addColumn((Person person) ->{ return person.getGroup().getGroupName()},new TextRenderer());
What is the best way to show this relationship information in the grid ?
If your Group object overrides the toString() method with "return getGroupName()",
addColumn(Person::getGroup()) should do the trick.
Is there any other way to do this ? Or is this the way how to hande relationships in the Grid.
I am looking for something like in Vaaind 7
ds.addNestedContainerBean("group")
as shown in this vaadin blog
https://vaadin.com/blog/-/blogs/using-vaadin-grid