Advertisement
AllyssonAyslan

Cadastro.java

Sep 25th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.35 KB | None | 0 0
  1. package com.foosball.models;
  2.  
  3. import java.io.Serializable;
  4.  
  5. import javax.persistence.Entity;
  6. import javax.persistence.GeneratedValue;
  7. import javax.persistence.GenerationType;
  8. import javax.persistence.Id;
  9.  
  10. @Entity
  11. public class Cadastro implements Serializable {
  12.  
  13.     private static final long serialVersionUID = 1L;
  14.  
  15.     @Id
  16.     @GeneratedValue(strategy = GenerationType.AUTO)
  17.     private long id;
  18.  
  19.     private String nome;
  20.     private String sexo;
  21.     private String telefone;
  22.     private String email;
  23.     private String alergia;
  24.     private String obs;
  25.  
  26.     public long getId() {
  27.         return id;
  28.     }
  29.  
  30.     public void setId(long id) {
  31.         this.id = id;
  32.     }
  33.  
  34.     public String getNome() {
  35.         return nome;
  36.     }
  37.  
  38.     public void setNome(String nome) {
  39.         this.nome = nome;
  40.     }
  41.  
  42.     public String getSexo() {
  43.         return sexo;
  44.     }
  45.  
  46.     public void setSexo(String sexo) {
  47.         this.sexo = sexo;
  48.     }
  49.  
  50.     public String getTelefone() {
  51.         return telefone;
  52.     }
  53.  
  54.     public void setTelefone(String telefone) {
  55.         this.telefone = telefone;
  56.     }
  57.  
  58.     public String getEmail() {
  59.         return email;
  60.     }
  61.  
  62.     public void setEmail(String email) {
  63.         this.email = email;
  64.     }
  65.  
  66.     public String getAlergia() {
  67.         return alergia;
  68.     }
  69.  
  70.     public void setAlergia(String alergia) {
  71.         this.alergia = alergia;
  72.     }
  73.  
  74.     public String getObs() {
  75.         return obs;
  76.     }
  77.  
  78.     public void setObs(String obs) {
  79.         this.obs = obs;
  80.     }
  81.  
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement