SHARE
TWEET

Untitled

a guest May 19th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package rest.model;
  2.  
  3. import javax.persistence.Entity;
  4. import javax.persistence.GeneratedValue;
  5. import javax.persistence.Id;
  6.  
  7. @Entity
  8. public class Tarefa {
  9.    
  10.     @Id
  11.     @GeneratedValue
  12.     private Long id;
  13.     private String descricao;
  14.     private boolean finalizado;
  15.    
  16.     public Long getId() {
  17.         return id;
  18.     }
  19.     public void setId(Long id) {
  20.         this.id = id;
  21.     }
  22.     public String getDescricao() {
  23.         return descricao;
  24.     }
  25.     public void setDescricao(String descricao) {
  26.         this.descricao = descricao;
  27.     }
  28.     public boolean isFinalizado() {
  29.         return finalizado;
  30.     }
  31.     public void setFinalizado(boolean finalizado) {
  32.         this.finalizado = finalizado;
  33.     }
  34.    
  35.     @Override
  36.     public String toString() {
  37.         return "Tarefa [id=" + id + ", descricao=" + descricao + ", finalizado=" + finalizado + "]";
  38.     }  
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top