📄 roleactionpk.java
字号:
package com.wxd.common.popedom.domain.entity;
import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/** @author Hibernate CodeGenerator */
public class RoleActionPK implements Serializable {
/** identifier field */
private Long roleNo;
/** identifier field */
private String actionId;
/** full constructor */
public RoleActionPK(Long roleNo, String actionId) {
this.roleNo = roleNo;
this.actionId = actionId;
}
/** default constructor */
public RoleActionPK() {
}
public Long getRoleNo() {
return this.roleNo;
}
public void setRoleNo(Long roleNo) {
this.roleNo = roleNo;
}
public String getActionId() {
return this.actionId;
}
public void setActionId(String actionId) {
this.actionId = actionId;
}
public String toString() {
return new ToStringBuilder(this)
.append("roleNo", getRoleNo())
.append("actionNo", getActionId())
.toString();
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( !(other instanceof RoleActionPK) ) return false;
RoleActionPK castOther = (RoleActionPK) other;
return new EqualsBuilder()
.append(this.getRoleNo(), castOther.getRoleNo())
.append(this.getActionId(), castOther.getActionId())
.isEquals();
}
public int hashCode() {
return new HashCodeBuilder()
.append(getRoleNo())
.append(getActionId())
.toHashCode();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -