I use Vaadin 13 with jooQ 3.11.11 programming a frontend for a postgresql database. The generated jooq classes return the postgresql Date and Time formats as java.sql.Date / java.sql.Time. I want to avoid any modification of these automatically generated classes as the database can change. How can I adopt java.sql.Date to the LocalDatetimeRenderer in Grids Column Constructor, with the MyRecord::getMyDate construction (no problem with Date and Time Picker where I can convert programmatically)?
Thanks in advance, Elke
You can use a lambda expression instead of the MyRecord::getMyDate
method reference to convert your model data to the correct type. For example: grid.addColumn(new LocalDateRenderer<Person>(person -> person.getSqlDate().toLocalDate()))
-Olli
Thanks so much, dear Olli!