Use Lombok subclass to inherit the parent class, the properties of the parent class do not take effect
Subcategories increase:
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class SysRights extends BaseEntity {
@Id
@GeneratedValue(generator = "uuid")
@GenericGenerator(name = "uuid", strategy = "uuid2")
private String rightsId;
private String rightsName;
private String rightsUrl;
private String rightsIcon;
}
problem solved