Last active
November 10, 2024 02:41
-
-
Save jelilio/d8ce973eb03eb05507fbf7a22bc6342e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment