How to edit and apply changes to beans with Grid component?

I am new to Vaadin. I like to use the Grid component to edit a list of beans. When I edit in cell the value the changes get not applied to my beans. So what I missing here

protected void init(VaadinRequest request) {
... VerticalLayout layout = new VerticalLayout();
PersonDAO personDAO = (PersonDAO) context.getBean("personDAO");
List<Person> personList = personDAO.getPerson();
BeanItemContainer<Person> ds = new BeanItemContainer<Person>(Person.class, personList);
Grid grid = new Grid("Person",ds);

Thank you.

I found the problem. I am using for my Bean "
" which generates automatically the Setter, Getters, Equals and HashCode in Bytecode. If I remove the @Data annotation of Lombok and just use @Gettes and @Setter it works. It looks like that with the Generated Equals or HashCode Method from Lombok it does not work. Others seems to have similar problems -
. Does somebody experience same problems with Lombok and Vaadin?

When I reduce the equals and hashcode method to use just the “id” it works with Lombok.

import lombok.Data;
import lombok.EqualsAndHashCode;

public class Person {
    public Person() {}
    public Person(int id, String name) { = id; = name;

    private int id;

    private String name;