📄 baseoperatorrole.java
字号:
package com.wxd.common.popedom.persistence.entity.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the tb_com_operator_role table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="tb_com_operator_role"
*/
public abstract class BaseOperatorRole implements Serializable {
public static String REF = "OperatorRole";
public static String PROP_OPERATOR = "Operator";
public static String PROP_ROLE = "Role";
public static String PROP_ID = "Id";
// constructors
public BaseOperatorRole () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseOperatorRole (java.lang.Integer id) {
this.setId(id);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer id;
// many to one
private com.wxd.common.popedom.persistence.entity.Operator operator;
private com.wxd.common.popedom.persistence.entity.Role role;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="native"
* column="operator_role_no"
*/
public java.lang.Integer getId () {
return id;
}
/**
* Set the unique identifier of this class
* @param id the new ID
*/
public void setId (java.lang.Integer id) {
this.id = id;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: operator_no
*/
public com.wxd.common.popedom.persistence.entity.Operator getOperator () {
return operator;
}
/**
* Set the value related to the column: operator_no
* @param operator the operator_no value
*/
public void setOperator (com.wxd.common.popedom.persistence.entity.Operator operator) {
this.operator = operator;
}
/**
* Return the value associated with the column: role_no
*/
public com.wxd.common.popedom.persistence.entity.Role getRole () {
return role;
}
/**
* Set the value related to the column: role_no
* @param role the role_no value
*/
public void setRole (com.wxd.common.popedom.persistence.entity.Role role) {
this.role = role;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.wxd.common.popedom.persistence.entity.OperatorRole)) return false;
else {
com.wxd.common.popedom.persistence.entity.OperatorRole operatorRole = (com.wxd.common.popedom.persistence.entity.OperatorRole) obj;
if (null == this.getId() || null == operatorRole.getId()) return false;
else return (this.getId().equals(operatorRole.getId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -