Yes it works!
very well.
I use it since 6 years more or less …
example:
// www.data-ware.it
package it.dataware.test.model.entities;
import lombok.Data;
import org.checkerframework.checker.units.qual.Length;
import org.hibernate.annotations.Generated;
import org.hibernate.annotations.GenerationTime;
import javax.persistence.*;
import java.io.Serializable;
@Data
@Entity
@Table(name = “Countries”)
public class Country implements Serializable {
@Id
@Column(name = “CodeISO”, insertable = false, updatable = false, length = 2)
@Generated(GenerationTime.INSERT)
private String id;
@Column(name = "Name", length = 50)
private String nome;
}
get & set of attributes are generate automatically.