RE: AddColum with embedded object

You want something like that ?

tarifsLignesGrid.addColumn(tarifLignes -> tarifLignes.getProducts.getName()).setCaption(TITLE_PRODUCTS)

I’d like to insert the property(string) of an embedded object with addColumn.

My code is just :

tarifsLignesGrid.addColumn(TarifsLignes::getProducts).setCaption(TITLE_PRODUCTS) the getProduct return a Product entity in which I’d like to take the name property instead of the toString return.

For the moment the solution I found is to create a method getProductName in the TarifsLignes entity class is there a better/cleaner solution ?


Thanks a lot, I must be too old school or just too old, I never think about this kind of writing :smiley: