Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

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

Mark Egloff
7 years ago Dec 05, 2015 5:40pm
Mark Egloff
7 years ago Dec 06, 2015 5:46pm
Mark Egloff
7 years ago Dec 06, 2015 6:11pm

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) {
        this.id = id;
        this.name = name;

    private int id;

    private String name;