📄 userroleid.java
字号:
package org.artemis.right.model;
// default package
/**
* UserRoleId generated by MyEclipse - Hibernate Tools
*/
public class UserRoleId implements java.io.Serializable {
// Fields
private String userId;
private String roleId;
// Constructors
/** default constructor */
public UserRoleId() {
}
/** full constructor */
public UserRoleId(String userId, String roleId) {
this.userId = userId;
this.roleId = roleId;
}
// Property accessors
public String getUserId() {
return this.userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getRoleId() {
return roleId;
}
public void setRoleId(String roleId) {
this.roleId = roleId;
}
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.getUserId()==castOther.getUserId()) || ( this.getUserId()!=null && castOther.getUserId()!=null && this.getUserId().equals(castOther.getUserId()) ) )
&& ( (this.getRoleId()==castOther.getRoleId()) || ( this.getRoleId()!=null && castOther.getRoleId()!=null && this.getRoleId().equals(castOther.getRoleId()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getUserId() == null ? 0 : this.getUserId().hashCode() );
result = 37 * result + ( getRoleId() == null ? 0 : this.getRoleId().hashCode() );
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -