@@ -0,0 +1,1864 @@
+package es.uniovi.asw.model;%0A%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.GenerationType;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.Table;%0A%0A/**%0A * @author Dario Rodr%C3%ADguez Garc%C3%ADa (@dariorg on GitHub)%0A * %0A * @version 2016.02.11 %0A *%0A * Clase POJO del modelo de dominio que recoge los datos de los ciudadanos censados as%C3%AD como%0A * el colegio electoral/mesa en el que emitir su voto.%0A * %0A */%0A@Entity%0A@Table( name = %22VOTER%22 )%0Apublic class Voter %7B%0A%09%0A%09@Id @GeneratedValue(strategy = GenerationType.AUTO)%0A%09private Long id;%0A%09%0A%09private String nombre;%0A%09private String email;%0A%09private String nif;%0A%09private String password;%0A%09%0A%09//Polling station%0A%09private int pollingStationCode;%0A%09%0A%09public Voter()%7B%0A%09%09%0A%09%7D%0A%09%0A%09public Voter(String nombre, String email, String password, String nif, int pollingStationCode) %7B%0A%09%09this.nombre = nombre;%0A%09%09this.email = email;%0A%09%09this.password = password;%0A%09%09this.nif = nif;%0A%09%09this.pollingStationCode = pollingStationCode;%0A%09%7D%0A%0A%09public String getEmail() %7B%0A%09%09return email;%0A%09%7D%0A%0A%0A%09public void setEmail(String email) %7B%0A%09%09this.email = email;%0A%09%7D%0A%0A%0A%09public String getPassword() %7B%0A%09%09return password;%0A%09%7D%0A%0A%0A%09public void setPassword(String password) %7B%0A%09%09this.password = password;%0A%09%7D%0A%0A%0A%09public String getNombre() %7B%0A%09%09return nombre;%0A%09%7D%0A%0A%0A%09public String getNif() %7B%0A%09%09return nif;%0A%09%7D%0A%09%0A%09%0A%09public int getPollingStationCode() %7B%0A%09%09return pollingStationCode;%0A%09%7D%0A%09%0A%09%0A%09public void setPollingStationCode(int pollingStationCode) %7B%0A%09%09this.pollingStationCode = pollingStationCode;%0A%09%7D%0A%09%0A%09%0A%0A%0A%09public void setNombre(String nombre) %7B%0A%09%09this.nombre = nombre;%0A%09%7D%0A%0A%09public void setNif(String nif) %7B%0A%09%09this.nif = nif;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22Voter %5Bnombre=%22 + nombre + %22, email=%22 + email + %22, nif=%22 + nif + %22, password=%22 + password%0A%09%09%09%09+ %22, pollingStationCode=%22 + pollingStationCode + %22%5D%22;%0A%09%7D%0A%09%0A%0A%7D%0A

add voter.java