/**
* This class represents the database table
* USER.
*/
public class UserBeanOriginal {
/** <code>id</code> holds the value of the field ID */
private int id;
/** <code>username</code> holds the value of the field username */
private String username;
/** <code>password</code> holds the value of the field password */
private String password;
/** <code>email</code> holds the value of the field email */
private String email;
/**
* Retrieve the value of the field ID.
* @return the value of the field
*/
public int getId(){
return id;
}
/**
* Set the value of the field ID.
* @param id value to be set for ID
*/
public void setId(int id){
this.id = id;
}
/**
* Retrieve the value of the field username.
* @return the value of the field
*/
public String getUsername(){
return username;
}
/**
* Set the value of the field username.
* @param username value to be set for username
*/
public void setUsername(String username){
this.username = username;
}
/**
* Retrieve the value of the field password.
* @return the value of the field
*/
public String getPassword(){
return password;
}
/**
* Set the value of the field password.
* @param password value to be set for password
*/
public void setPassword(String password){
this.password = password;
}
/**
* Retrieve the value of the field email.
* @return the value of the field
*/
public String getEmail(){
return email;
}
/**
* Set the value of the field email.
* @param email value to be set for email
*/
public void setEmail(String email){
this.email = email;
}
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((email == null) ? 0 : email.hashCode());
result = prime * result + id;
result = prime * result
+ ((password == null) ? 0 : password.hashCode());
result = prime * result
+ ((username == null) ? 0 : username.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;
UserBeanOriginal other = (UserBeanOriginal) obj;
if (email == null) {
if (other.email != null)
return false;
} else if (!email.equals(other.email))
return false;
if (id != other.id)
return false;
if (password == null) {
if (other.password != null)
return false;
} else if (!password.equals(other.password))
return false;
if (username == null) {
if (other.username != null)
return false;
} else if (!username.equals(other.username))
return false;
return true;
}
}