r2dbc / r2dbc-pool

Connection Pooling for Reactive Relational Database Connectivity
https://r2dbc.io
Apache License 2.0
332 stars 55 forks source link

allow inheritance from abstract @MappedSuperClass in child entity #145

Closed cforce closed 2 years ago

cforce commented 2 years ago

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;
}
mp911de commented 2 years ago

This is neither JPA nor a mapping framework, this project keeps track of issues for the R2DBC connection pool.