@Table("posts") public class Post extends AbstractSoftDeletableEntity { @Id private Long id; @Column("title") public String title; @Column("body") public String body; public Post() {} public Post(String title, String body) { this.title = title; this.body = body; } public Long getId() { return id; } }