Menu

[r3159]: / trunk / ch.sahits.codegen.java.jugr / src / UserBeanOriginal.java  Maximize  Restore  History

Download this file

123 lines (110 with data), 2.9 kB

  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
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/**
* 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;
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.