I would like to reuse basic entity properties with DRY as known by JPA
I could not get it working as well did not found any doc it is (not) supported
public class Student extends BaseEntity{
String name;
}
@MappedSuperclass
public abstract class BaseEntity {
@Id
@GeneratedValue
Long id;
@CreatedDate
LocalDateTime createdAt;
@LastModifiedDate
LocalDateTime updatedAt;
}
I would like to reuse basic entity properties with DRY as known by JPA I could not get it working as well did not found any doc it is (not) supported