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

📄 abstractroleinfo.java

📁 struts+spring+hibernate新闻管理
💻 JAVA
字号:
/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Mon Jul 03 15:11:21 CST 2006 by MyEclipse Hibernate Tool.
 */
package org.qhit.mapping;

import java.io.Serializable;

/**
 * A class that represents a row in the roleinfo table. 
 * You can customize the behavior of this class by editing the class, {@link Roleinfo()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractRoleinfo 
    implements Serializable
{
    /** The cached hash code value for this instance.  Settting to 0 triggers re-calculation. */
    private int hashValue = 0;

    /** The composite primary key value. */
    private java.lang.Integer rid;

    /** The value of the userinfoSet one-to-many association. */
    private java.util.Set userinfoSet;

    /** The value of the simple rname property. */
    private java.lang.String rname;

    /**
     * Simple constructor of AbstractRoleinfo instances.
     */
    public AbstractRoleinfo()
    {
    }

    /**
     * Constructor of AbstractRoleinfo instances given a simple primary key.
     * @param rid
     */
    public AbstractRoleinfo(java.lang.Integer rid)
    {
        this.setRid(rid);
    }

    /**
     * Return the simple primary key value that identifies this object.
     * @return java.lang.Integer
     */
    public java.lang.Integer getRid()
    {
        return rid;
    }

    /**
     * Set the simple primary key value that identifies this object.
     * @param rid
     */
    public void setRid(java.lang.Integer rid)
    {
        this.hashValue = 0;
        this.rid = rid;
    }

    /**
     * Return the value of the rname column.
     * @return java.lang.String
     */
    public java.lang.String getRname()
    {
        return this.rname;
    }

    /**
     * Set the value of the rname column.
     * @param rname
     */
    public void setRname(java.lang.String rname)
    {
        this.rname = rname;
    }

    /**
     * Return the value of the jse collection.
     * @return Userinfo
     */
    public java.util.Set getUserinfoSet()
    {
        return this.userinfoSet;
    }

    /**
     * Set the value of the jse collection.
     * @param userinfoSet
     */
    public void setUserinfoSet(java.util.Set userinfoSet)
    {
        this.userinfoSet = userinfoSet;
    }

    /**
     * Implementation of the equals comparison on the basis of equality of the primary key values.
     * @param rhs
     * @return boolean
     */
    public boolean equals(Object rhs)
    {
        if (rhs == null)
            return false;
        if (! (rhs instanceof Roleinfo))
            return false;
        Roleinfo that = (Roleinfo) rhs;
        if (this.getRid() == null || that.getRid() == null)
            return false;
        return (this.getRid().equals(that.getRid()));
    }

    /**
     * Implementation of the hashCode method conforming to the Bloch pattern with
     * the exception of array properties (these are very unlikely primary key types).
     * @return int
     */
    public int hashCode()
    {
        if (this.hashValue == 0)
        {
            int result = 17;
            int ridValue = this.getRid() == null ? 0 : this.getRid().hashCode();
            result = result * 37 + ridValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }
}

⌨️ 快捷键说明

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