Problem with CRUD

Hi everyone,

I’m beginning to learn Vaadin so then I have spent a few days trying to solve different problems with CRUD.
I have created new registers in a table and It was saved in database but I haven’t known how to edit and delete registers. I have deleted registers from a table but I couldn’t save that change in database.

For example, I get this code where I’m deleting a row of a table but I’m not deleting in database.

Button delete = new Button(“Delete”, new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
Object userId = table.getValue();

I will be thankful if you can share me some example of CRUD and connected with a database.

Thanks for trying to help me!