⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractoperarelog.java

📁 这是本人在学习T4SH框架时
💻 JAVA
字号:
package com.zxx.tsh.model.operarelog.pojo.basic;

import java.util.Date;

import com.zxx.tsh.model.operarelog.pojo.OperareType;
import com.zxx.tsh.model.userinfo.pojo.UserInfo;


/**
 * AbstractOperareLog generated by MyEclipse - Hibernate Tools
 */

public abstract class AbstractOperareLog  implements java.io.Serializable {


    // Fields    

     private String logId;
     private OperareType operareType;
     private UserInfo userInfo;
     private Date operDate;
     private String operTableName;
     private String operResultId;
     private String operMachineAddress;


    // Constructors

    /** default constructor */
    public AbstractOperareLog() {
    }

	/** minimal constructor */
    public AbstractOperareLog(OperareType operareType, UserInfo userInfo) {
        this.operareType = operareType;
        this.userInfo = userInfo;
    }
    
    /** full constructor */
    public AbstractOperareLog(OperareType operareType, UserInfo userInfo, Date operDate, String operTableName, String operResultId, String operMachineAddress) {
        this.operareType = operareType;
        this.userInfo = userInfo;
        this.operDate = operDate;
        this.operTableName = operTableName;
        this.operResultId = operResultId;
        this.operMachineAddress = operMachineAddress;
    }

   
    // Property accessors

    public String getLogId() {
        return this.logId;
    }
    
    public void setLogId(String logId) {
        this.logId = logId;
    }

    public OperareType getOperareType() {
        return this.operareType;
    }
    
    public void setOperareType(OperareType operareType) {
        this.operareType = operareType;
    }

    public UserInfo getUserInfo() {
        return this.userInfo;
    }
    
    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public Date getOperDate() {
        return this.operDate;
    }
    
    public void setOperDate(Date operDate) {
        this.operDate = operDate;
    }

    public String getOperTableName() {
        return this.operTableName;
    }
    
    public void setOperTableName(String operTableName) {
        this.operTableName = operTableName;
    }

    public String getOperResultId() {
        return this.operResultId;
    }
    
    public void setOperResultId(String operResultId) {
        this.operResultId = operResultId;
    }

    public String getOperMachineAddress() {
        return this.operMachineAddress;
    }
    
    public void setOperMachineAddress(String operMachineAddress) {
        this.operMachineAddress = operMachineAddress;
    }

	@Override
	public int hashCode() {
		final int PRIME = 31;
		int result = 1;
		result = PRIME * result + ((logId == null) ? 0 : logId.hashCode());
		result = PRIME * result + ((operDate == null) ? 0 : operDate.hashCode());
		result = PRIME * result + ((operMachineAddress == null) ? 0 : operMachineAddress.hashCode());
		result = PRIME * result + ((operResultId == null) ? 0 : operResultId.hashCode());
		result = PRIME * result + ((operTableName == null) ? 0 : operTableName.hashCode());
		result = PRIME * result + ((operareType == null) ? 0 : operareType.hashCode());
		result = PRIME * result + ((userInfo == null) ? 0 : userInfo.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final AbstractOperareLog other = (AbstractOperareLog) obj;
		if (logId == null) {
			if (other.logId != null)
				return false;
		} else if (!logId.equals(other.logId))
			return false;
		if (operDate == null) {
			if (other.operDate != null)
				return false;
		} else if (!operDate.equals(other.operDate))
			return false;
		if (operMachineAddress == null) {
			if (other.operMachineAddress != null)
				return false;
		} else if (!operMachineAddress.equals(other.operMachineAddress))
			return false;
		if (operResultId == null) {
			if (other.operResultId != null)
				return false;
		} else if (!operResultId.equals(other.operResultId))
			return false;
		if (operTableName == null) {
			if (other.operTableName != null)
				return false;
		} else if (!operTableName.equals(other.operTableName))
			return false;
		if (operareType == null) {
			if (other.operareType != null)
				return false;
		} else if (!operareType.equals(other.operareType))
			return false;
		if (userInfo == null) {
			if (other.userInfo != null)
				return false;
		} else if (!userInfo.equals(other.userInfo))
			return false;
		return true;
	}
   

	public String toString() {
		super.toString();
		StringBuilder sb = new StringBuilder();
		sb.append("logId=[");
		sb.append(logId.toString());
		sb.append("] operareType=[");
		sb.append(operareType);
		sb.append("] userInfo=[");
		sb.append(userInfo);
		sb.append("] operDate=[");
		sb.append(operDate);
		sb.append("] operTableName=[");
		sb.append(operTableName);
		sb.append("] operResultId=[");
		sb.append(operResultId);
		sb.append("]  operMachineAddress=[");
		sb.append(operMachineAddress);
		return sb.toString();
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -