Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.foosball.models;
- import java.io.Serializable;
- import javax.persistence.Entity;
- import javax.persistence.GeneratedValue;
- import javax.persistence.GenerationType;
- import javax.persistence.Id;
- @Entity
- public class Cadastro implements Serializable {
- private static final long serialVersionUID = 1L;
- @Id
- @GeneratedValue(strategy = GenerationType.AUTO)
- private long id;
- private String nome;
- private String sexo;
- private String telefone;
- private String email;
- private String alergia;
- private String obs;
- public long getId() {
- return id;
- }
- public void setId(long id) {
- this.id = id;
- }
- public String getNome() {
- return nome;
- }
- public void setNome(String nome) {
- this.nome = nome;
- }
- public String getSexo() {
- return sexo;
- }
- public void setSexo(String sexo) {
- this.sexo = sexo;
- }
- public String getTelefone() {
- return telefone;
- }
- public void setTelefone(String telefone) {
- this.telefone = telefone;
- }
- public String getEmail() {
- return email;
- }
- public void setEmail(String email) {
- this.email = email;
- }
- public String getAlergia() {
- return alergia;
- }
- public void setAlergia(String alergia) {
- this.alergia = alergia;
- }
- public String getObs() {
- return obs;
- }
- public void setObs(String obs) {
- this.obs = obs;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment