How to do a Join in vaadin

Hi,

How can i make this SQL in vaadin?

JOIN = SELECT *
FROM SFI2_SIMULATION T0 JOIN SFI2_SHAREDSIMULATION T1
ON T0.USERID = T1.USERID;

datasource.addContainerFilter(JOIN);

Hi,

Take a look at the SQLContainer class:
https://vaadin.com/api/7.3.1/com/vaadin/data/util/sqlcontainer/SQLContainer.html

SQLContainer is a part of Vaadin since version 7 point something. If you’re using V6, you’ll need to get an add-on from the Directory.

A quick Googling yields this tutorial (made for Vaadin 6, but still quite applicable to Vaadin 7.x - just remember you don’t need the addon for V7):
https://vaadin.com/tutorial/sql