com.evasion.module.common.entity.AccountDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of API Show documentation
Show all versions of API Show documentation
API de l'application modulaire evasion-en-ligne
The newest version!
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.evasion.module.common.entity;
import com.evasion.entity.Person;
import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
*
* @author sglon
*/
public class AccountDTO implements IAccount, Serializable {
private Long id;
private String email;
private Person person;
private Date creationDate;
private Date lastLogin;
private String password;
private String username;
private boolean enabled=false;
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public Person getPerson() {
return this.person;
}
public void setPerson(Person person) {
this.person = person;
}
public Date getCreationDate() {
return this.creationDate;
}
public void setCreationDate(Date creationDate) {
this.creationDate = creationDate;
}
public Date getLastLogin() {
return this.lastLogin;
}
public void setLastLogin(Date lastLogin) {
this.lastLogin = lastLogin;
}
public void setPassword(String password) {
this.password = password;
}
public String getPassword() {
return password;
}
public String getUsername() {
return this.username;
}
public void setUsername(String username) {
this.username = username;
}
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enable) {
this.enabled = enable;
}
@Override
public String toString() {
ToStringBuilder builder = new ToStringBuilder(this);
builder.append("username", username).
append("lastLogin", lastLogin).
append("id", id).
append("email", email);
return builder.toString();
}
}