81,122
社区成员




/**
* TestId entity. @author MyEclipse Persistence Tools
*/
public class TestId implements java.io.Serializable {
// Fields
private String username;
private String password;
// Constructors
/** default constructor */
public TestId() {
}
/** full constructor */
public TestId(String username, String password) {
this.username = username;
this.password = password;
}
// Property accessors
public String getUsername() {
return this.username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return this.password;
}
public void setPassword(String password) {
this.password = password;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof TestId))
return false;
TestId castOther = (TestId) other;
return ((this.getUsername() == castOther.getUsername()) || (this
.getUsername() != null
&& castOther.getUsername() != null && this.getUsername()
.equals(castOther.getUsername())))
&& ((this.getPassword() == castOther.getPassword()) || (this
.getPassword() != null
&& castOther.getPassword() != null && this
.getPassword().equals(castOther.getPassword())));
}
public int hashCode() {
int result = 17;
result = 37 * result
+ (getUsername() == null ? 0 : this.getUsername().hashCode());
result = 37 * result
+ (getPassword() == null ? 0 : this.getPassword().hashCode());
return result;
}
}
/**
* Test entity. @author MyEclipse Persistence Tools
*/
public class Test implements java.io.Serializable {
// Fields
private TestId id;
// Constructors
/** default constructor */
public Test() {
}
/** full constructor */
public Test(TestId id) {
this.id = id;
}
// Property accessors
public TestId getId() {
return this.id;
}
public void setId(TestId id) {
this.id = id;
}
}