Generic approach for many tables data sources

Hi All,

I am quite new to Vaadin and I would like to migrate my project to use it.
However my project is very data intensive and I have db with a lot of tables and relations between them.

I am interested if there is some more efficient way of using Vaadin’s SQLContainer in the sense of avoiding to write so much boilerplate code when we want to display a value from the related table in the grid, edit related tables in the form etc.

As far as I can see in the SQLContainer tutorial with the Address Book, to operate with two realted tables you need quite a lot of boilerplate code, writing this for 40ish different tables can be very cumbersome.

The second thing that I wanted to ask is, what is the best approach for creating SQLContainers for all the tables from the db so that they can be used through out of the application? I am interested to know this again with respect to the amount of boilerplatecode that needs to be written.

Thanks in advance.