@Entity
public class Person extends BaseEntity{
// other properties
}
@MappedSuperclass
public abstract class BaseEntity implements Serializable {
@Id
private Long id;
//Getters and Setters
}
Eclipse JPA Validator shows: Entity "Person" has no Id or EmbeddedId