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

📄 pgroupprvkey.java

📁 本系统是基于Struts+Hibernate开发的一套后台管理系统
💻 JAVA
字号:
/* * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized * by MyEclipse Hibernate tool integration. * * Created Sat Aug 20 23:09:26 CST 2005 by MyEclipse Hibernate Tool. */package com.infosys.Hibernate;import java.io.Serializable;/** * A class representing a composite primary key id for the p_group_prv * table.  This object should only be instantiated for use with instances  * of the PGroupPrv class. */public class PGroupPrvKey    implements Serializable{    /** The cached hash code value for this instance.  Settting to 0 triggers re-calculation. */    private volatile int hashValue = 0;    /** The value of the groupid component of this composite id. */    private PGroup pGroup;    /** The value of the privilege component of this composite id. */    private PPrivilege pPrivilege;    /**     * Simple constructor of PGroupPrvKey instances.     */    public PGroupPrvKey()    {    }    /**     * Returns the value of the pGroup property.     * @return PGroup     */    public PGroup getGroupid()    {        return pGroup;    }    /**     * Sets the value of the pGroup property.     * @param pGroup     */    public void setGroupid(PGroup pGroup)    {        hashValue = 0;        this.pGroup = pGroup;    }    /**     * Returns the value of the pPrivilege property.     * @return PPrivilege     */    public PPrivilege getPrivilege()    {        return pPrivilege;    }    /**     * Sets the value of the pPrivilege property.     * @param pPrivilege     */    public void setPrivilege(PPrivilege pPrivilege)    {        hashValue = 0;        this.pPrivilege = pPrivilege;    }    /**     * Implementation of the equals comparison on the basis of equality of the id components.     * @param rhs     * @return boolean     */    public boolean equals(Object rhs)    {        if (rhs == null)            return false;        if (! (rhs instanceof PGroupPrvKey))            return false;        PGroupPrvKey that = (PGroupPrvKey) rhs;        if (this.getGroupid() != null && that.getGroupid() != null)        {            if (! this.getGroupid().equals(that.getGroupid()))            {                return false;            }        }        if (this.getPrivilege() != null && that.getPrivilege() != null)        {            if (! this.getPrivilege().equals(that.getPrivilege()))            {                return false;            }        }        return true;    }    /**     * 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 pGroupValue = this.getGroupid() == null ? 0 : this.getGroupid().hashCode();            result = result * 37 + pGroupValue;            int pPrivilegeValue = this.getPrivilege() == null ? 0 : this.getPrivilege().hashCode();            result = result * 37 + pPrivilegeValue;            this.hashValue = result;        }        return this.hashValue;    }}

⌨️ 快捷键说明

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