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

📄 abstractusertype.java

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

import java.util.HashSet;
import java.util.Set;


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

public abstract class AbstractUserType  implements java.io.Serializable {


    // Fields    

     private String typeId;
     private String typeName;
     private String typeDescription;
     private Set userInfos = new HashSet(0);


    // Constructors

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

	/** minimal constructor */
    public AbstractUserType(String typeName) {
        this.typeName = typeName;
    }
    
    /** full constructor */
    public AbstractUserType(String typeName, String typeDescription, Set userInfos) {
        this.typeName = typeName;
        this.typeDescription = typeDescription;
        this.userInfos = userInfos;
    }

   
    // Property accessors

    public String getTypeId() {
        return this.typeId;
    }
    
    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return this.typeName;
    }
    
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeDescription() {
        return this.typeDescription;
    }
    
    public void setTypeDescription(String typeDescription) {
        this.typeDescription = typeDescription;
    }

    public Set getUserInfos() {
        return this.userInfos;
    }
    
    public void setUserInfos(Set userInfos) {
        this.userInfos = userInfos;
    }

	@Override
	public int hashCode() {
		final int PRIME = 31;
		int result = 1;
		result = PRIME * result + ((typeDescription == null) ? 0 : typeDescription.hashCode());
		result = PRIME * result + ((typeId == null) ? 0 : typeId.hashCode());
		result = PRIME * result + ((typeName == null) ? 0 : typeName.hashCode());
		result = PRIME * result + ((userInfos == null) ? 0 : userInfos.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 AbstractUserType other = (AbstractUserType) obj;
		if (typeDescription == null) {
			if (other.typeDescription != null)
				return false;
		} else if (!typeDescription.equals(other.typeDescription))
			return false;
		if (typeId == null) {
			if (other.typeId != null)
				return false;
		} else if (!typeId.equals(other.typeId))
			return false;
		if (typeName == null) {
			if (other.typeName != null)
				return false;
		} else if (!typeName.equals(other.typeName))
			return false;
		if (userInfos == null) {
			if (other.userInfos != null)
				return false;
		} else if (!userInfos.equals(other.userInfos))
			return false;
		return true;
	}
   
	public String toString() {
		StringBuffer ret = new StringBuffer();
		ret.append("com.zxx.tsh.view.userinfo.vo.UserTypeVO: typeId=[");
		ret.append( typeId);
		ret.append("] typeName=[");
		ret.append(typeName);
		ret.append("] typeDescription=[");
		ret.append(typeDescription);
		ret.append("]");
		return ret.toString();
	}
}

⌨️ 快捷键说明

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