package org.audt4j.demo.spring.model;
import java.io.Serializable;
/**
* The Class User.
*
* @author <a href="mailto:janith3000@gmail.com">Janith Bandara</a>
*
*/
public class User implements Serializable {
/** asdas. */
private static final long serialVersionUID = 1L;
/** The id. */
private long id;
/** The username. */
private String username;
/** The first name. */
private String firstName;
/** The last name. */
private String lastName;
/** The password. */
private String password;
/**
* Instantiates a new user.
*
* @param userName
* the user name
*/
public User(String userName) {
this.username = userName;
}
public User(String userName, String password) {
this(userName);
this.password = password;
}
/**
* Gets the id.
*
* @return the id
*/
public long getId() {
return id;
}
/**
* Sets the id.
*
* @param id
* the new id
*/
public void setId(long id) {
this.id = id;
}
/**
* Gets the username.
*
* @return the username
*/
public String getUsername() {
return username;
}
/**
* Sets the username.
*
* @param username
* the new username
*/
public void setUsername(String username) {
this.username = username;
}
/**
* Gets the first name.
*
* @return the first name
*/
public String getFirstName() {
return firstName;
}
/**
* Sets the first name.
*
* @param firstName
* the new first name
*/
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/**
* Gets the last name.
*
* @return the last name
*/
public String getLastName() {
return lastName;
}
/**
* Sets the last name.
*
* @param lastName
* the new last name
*/
public void setLastName(String lastName) {
this.lastName = lastName;
}
/**
* Gets the password.
*
* @return the password
*/
public String getPassword() {
return password;
}
/**
* Sets the password.
*
* @param password
* the new password
*/
public void setPassword(String password) {
this.password = password;
}
}