Hi,
I need to represent data fom a backend db (MySql or MariaDB) in my grid.
I’m not interessed in Lazy Loading: data is quantity is very low, all data can be loaded in memory.
I use Hibernate and and as seen in the Vaadin 8 example I use the DataProvider object that extends AbstractDataProvider.
Everything works except the sorting.
The question is: which type of DataProvider should I utilize, and is there any clear example?
I know I cannot use the grid sorting mechanism when the data source is a dataprovider, but it is not clear how to sort data in the dataprovider itself. Moreover, I don’t want to add the
order by
clause in the sql
I’ve seen AbstractBackEndDataProvider, Is it the right one?
I’m quite confused at the moment.