📄 baseoperator.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 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"
*/
public abstract class BaseOperator implements Serializable {
public static String REF = "Operator";
public static String PROP_OPERATOR_PWD = "OperatorPwd";
public static String PROP_OPERATOR_ID = "OperatorId";
public static String PROP_OPERATOR_NAME = "OperatorName";
public static String PROP_SYS = "Sys";
public static String PROP_OPERATOR_DESCRIBE = "OperatorDescribe";
public static String PROP_OPERATOR_TEL = "OperatorTel";
public static String PROP_ID = "Id";
public static String PROP_OPERATOR_EMAIL = "OperatorEmail";
public static String PROP_ISVALID = "Isvalid";
// constructors
public BaseOperator () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseOperator (java.lang.Integer id) {
this.setId(id);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer id;
// fields
private java.lang.String operatorId;
private java.lang.String operatorName;
private java.lang.String operatorPwd;
private java.lang.String operatorEmail;
private java.lang.String operatorTel;
private java.lang.String operatorDescribe;
private java.lang.String isvalid;
private boolean sys;
// collections
private java.util.Set<com.wxd.common.popedom.persistence.entity.OperatorRole> operatorRoles;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="native"
* column="operator_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_id
*/
public java.lang.String getOperatorId () {
return operatorId;
}
/**
* Set the value related to the column: operator_id
* @param operatorId the operator_id value
*/
public void setOperatorId (java.lang.String operatorId) {
this.operatorId = operatorId;
}
/**
* Return the value associated with the column: operator_name
*/
public java.lang.String getOperatorName () {
return operatorName;
}
/**
* Set the value related to the column: operator_name
* @param operatorName the operator_name value
*/
public void setOperatorName (java.lang.String operatorName) {
this.operatorName = operatorName;
}
/**
* Return the value associated with the column: operator_pwd
*/
public java.lang.String getOperatorPwd () {
return operatorPwd;
}
/**
* Set the value related to the column: operator_pwd
* @param operatorPwd the operator_pwd value
*/
public void setOperatorPwd (java.lang.String operatorPwd) {
this.operatorPwd = operatorPwd;
}
/**
* Return the value associated with the column: operator_email
*/
public java.lang.String getOperatorEmail () {
return operatorEmail;
}
/**
* Set the value related to the column: operator_email
* @param operatorEmail the operator_email value
*/
public void setOperatorEmail (java.lang.String operatorEmail) {
this.operatorEmail = operatorEmail;
}
/**
* Return the value associated with the column: operator_tel
*/
public java.lang.String getOperatorTel () {
return operatorTel;
}
/**
* Set the value related to the column: operator_tel
* @param operatorTel the operator_tel value
*/
public void setOperatorTel (java.lang.String operatorTel) {
this.operatorTel = operatorTel;
}
/**
* Return the value associated with the column: operator_describe
*/
public java.lang.String getOperatorDescribe () {
return operatorDescribe;
}
/**
* Set the value related to the column: operator_describe
* @param operatorDescribe the operator_describe value
*/
public void setOperatorDescribe (java.lang.String operatorDescribe) {
this.operatorDescribe = operatorDescribe;
}
/**
* Return the value associated with the column: isvalid
*/
public java.lang.String getIsvalid () {
return isvalid;
}
/**
* Set the value related to the column: isvalid
* @param isvalid the isvalid value
*/
public void setIsvalid (java.lang.String isvalid) {
this.isvalid = isvalid;
}
/**
* Return the value associated with the column: is_sys
*/
public boolean isSys () {
return sys;
}
/**
* Set the value related to the column: is_sys
* @param sys the is_sys value
*/
public void setSys (boolean sys) {
this.sys = sys;
}
/**
* Return the value associated with the column: OperatorRoles
*/
public java.util.Set<com.wxd.common.popedom.persistence.entity.OperatorRole> getOperatorRoles () {
return operatorRoles;
}
/**
* Set the value related to the column: OperatorRoles
* @param operatorRoles the OperatorRoles value
*/
public void setOperatorRoles (java.util.Set<com.wxd.common.popedom.persistence.entity.OperatorRole> operatorRoles) {
this.operatorRoles = operatorRoles;
}
public void addToOperatorRoles (com.wxd.common.popedom.persistence.entity.OperatorRole operatorRole) {
if (null == getOperatorRoles()) setOperatorRoles(new java.util.TreeSet<com.wxd.common.popedom.persistence.entity.OperatorRole>());
getOperatorRoles().add(operatorRole);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.wxd.common.popedom.persistence.entity.Operator)) return false;
else {
com.wxd.common.popedom.persistence.entity.Operator operator = (com.wxd.common.popedom.persistence.entity.Operator) obj;
if (null == this.getId() || null == operator.getId()) return false;
else return (this.getId().equals(operator.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 + -