Two different datatypes in vaadin treegrid?

Hey, I have JobApplicants that each have a list of Service classes. Is it possible to create a Tree Grid, that displays the JobApplicants as parents and with arrow dropdown, it displays The services that the exact jobapplicant has? So is it possible to have two different datatypes in vaadin treegrid?

It’s possible if you wrap both types in the same bean

Or use a common interface

Here is an example tree-flow/src/test/java/org/vaadin/tatu/MixedTreeView.java at v24 · TatuLund/tree-flow · GitHub

Here is an actual TreeGrid example I wrote for somebody else a couple of weeks ago (sorry about the lousy formatting):

If there is no common supertype/interface, use java.util.Object, just bit nastier to declare the columns.