📄 userroleid.java
字号:
package lxl;
/**
* UserRoleId generated by MyEclipse Persistence Tools
*/
public class UserRoleId implements java.io.Serializable {
// Fields
private UserInfo userInfo;
private RoleInfo roleInfo;
// Constructors
/** default constructor */
public UserRoleId() {
}
/** full constructor */
public UserRoleId(UserInfo userInfo, RoleInfo roleInfo) {
this.userInfo = userInfo;
this.roleInfo = roleInfo;
}
// Property accessors
public UserInfo getUserInfo() {
return this.userInfo;
}
public void setUserInfo(UserInfo userInfo) {
this.userInfo = userInfo;
}
public RoleInfo getRoleInfo() {
return this.roleInfo;
}
public void setRoleInfo(RoleInfo roleInfo) {
this.roleInfo = roleInfo;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof UserRoleId))
return false;
UserRoleId castOther = (UserRoleId) other;
return ((this.getUserInfo() == castOther.getUserInfo()) || (this
.getUserInfo() != null
&& castOther.getUserInfo() != null && this.getUserInfo()
.equals(castOther.getUserInfo())))
&& ((this.getRoleInfo() == castOther.getRoleInfo()) || (this
.getRoleInfo() != null
&& castOther.getRoleInfo() != null && this
.getRoleInfo().equals(castOther.getRoleInfo())));
}
public int hashCode() {
int result = 17;
result = 37 * result
+ (getUserInfo() == null ? 0 : this.getUserInfo().hashCode());
result = 37 * result
+ (getRoleInfo() == null ? 0 : this.getRoleInfo().hashCode());
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -