Advertisement
PyGuy91

Todo.java

May 16th, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.32 KB | None | 0 0
  1. import javax.persistence.Id;
  2. import javax.persistence.Entity;
  3. import javax.persistence.GeneratedValue;
  4. import javax.persistence.GenerationType;
  5.  
  6. @Entity
  7. public class Todo {
  8.    
  9.     @Id
  10.     @GeneratedValue(strategy = GenerationType.IDENTITY)
  11.     private Long id;
  12.     private String author;
  13.    
  14.     private String summary;
  15.     private String description;
  16.     private String url;
  17.     protected boolean isFinished;
  18.    
  19.     public Todo(String author, String summary, String description, String url) {
  20.        
  21.         this.author = author;
  22.         this.summary = summary;
  23.         this.description = description;
  24.         this.url = url;
  25.         this.isFinished = false;
  26.        
  27.     }
  28.    
  29.     public void setAuthor(String author) {
  30.         this.author = author;
  31.     }
  32.    
  33.     public void setDescription(String description) {
  34.         this.description = description;
  35.     }
  36.    
  37.     public void setSummary(String summary) {
  38.         this.summary = summary;
  39.     }
  40.    
  41.     public void setURL(String url) {
  42.         this.url = url;
  43.     }
  44.    
  45.     public void setFinished(boolean isFinished) {
  46.         this.isFinished = isFinished;
  47.     }
  48.    
  49.     public Long getID() {
  50.         return id;
  51.     }
  52.    
  53.     public String getAuthor() {
  54.         return author;
  55.     }
  56.    
  57.     public String getDescription() {
  58.         return description;
  59.     }
  60.    
  61.     public String getSummary() {
  62.         return summary;
  63.     }
  64.    
  65.     public String getURL() {
  66.         return url;
  67.     }
  68.    
  69.     public boolean isFinished() {
  70.         return isFinished;
  71.     }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement