Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.persistence.Id;
- import javax.persistence.Entity;
- import javax.persistence.GeneratedValue;
- import javax.persistence.GenerationType;
- @Entity
- public class Todo {
- @Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Long id;
- private String author;
- private String summary;
- private String description;
- private String url;
- protected boolean isFinished;
- public Todo(String author, String summary, String description, String url) {
- this.author = author;
- this.summary = summary;
- this.description = description;
- this.url = url;
- this.isFinished = false;
- }
- public void setAuthor(String author) {
- this.author = author;
- }
- public void setDescription(String description) {
- this.description = description;
- }
- public void setSummary(String summary) {
- this.summary = summary;
- }
- public void setURL(String url) {
- this.url = url;
- }
- public void setFinished(boolean isFinished) {
- this.isFinished = isFinished;
- }
- public Long getID() {
- return id;
- }
- public String getAuthor() {
- return author;
- }
- public String getDescription() {
- return description;
- }
- public String getSummary() {
- return summary;
- }
- public String getURL() {
- return url;
- }
- public boolean isFinished() {
- return isFinished;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement