Hi everyone!
I just start using vaadin but im with some difficults, especially when im using hbncontainer + pojo class.
I’m doing a simple application with a Table that is filled with Hbncontainer from two POJO class. My question, its possible to send ALL the pojos fields (parent & child(s)) to Hbncontainer so we can show the propertys on table?
Imagine this:
persons (id, name, phone_number_id) (parent)
phone_numbers(id, number) (child)
I’ve done the mapping using annotations with all the relations between persons and phone_numbers, but when im showing the data on the table, the hbncontainer only has the fields (own fields and relation) from persons pojo.
When i get the propertys from the container (hbn.getContainerPropertyIds() i get someting like [id, name, phoneNumbersId]
(phoneNumbersId is the mapped field to pojo phone_numbers).
It’s possible to get something like [id, name, phone_number_id, number]
in the hbncontainer ?
Ty in advance.
VizRS