1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
| package fr.natoine.user_persistence;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@Entity
@Table(name = "USER")
public class User implements Serializable
{
@Id @GeneratedValue
@Column(name = "USER_ID")
private Long id;
@Column(name = "USER_LOGIN" , unique=true, nullable=false)
private String login;
@Column(name = "USER_MAIL" , nullable=false)
private String mail;
@Column(name = "USER_DATE_INSCRIPTION")
private Date inscription;
@Column(name = "USER_CONTEXT_INSCRIPTION")
private String context_inscription;
@Column(name = "USER_PASSWORD")
private String password;
public String getLogin() {
return login;
}
public void setLogin(String login)
{
this.login = login;
}
public String getMail() {
return mail;
}
public void setMail(String mail) {
this.mail = mail;
}
public Date getInscription() {
return inscription;
}
public void setInscription(Date inscription) {
this.inscription = inscription;
}
public String getContext_inscription() {
return context_inscription;
}
public void setContext_inscription(String contextInscription) {
context_inscription = contextInscription;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Long getId() {
return id;
}
} |
Partager