Skip to content

Instantly share code, notes, and snippets.

@jelilio
Last active November 10, 2024 02:41
Show Gist options
  • Save jelilio/d8ce973eb03eb05507fbf7a22bc6342e to your computer and use it in GitHub Desktop.
Save jelilio/d8ce973eb03eb05507fbf7a22bc6342e to your computer and use it in GitHub Desktop.
@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