abstractshop.java

来自「《JSP网站开发典型模块与实例精讲》一书光盘源码」· Java 代码 · 共 326 行

JAVA
326
字号
/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Thu Feb 16 22:14:46 GMT-08:00 2006 by MyEclipse Hibernate Tool.
 */
package book.example.photoprint.po;

import java.io.Serializable;

/**
 * A class that represents a row in the shop table. 
 * You can customize the behavior of this class by editing the class, {@link Shop()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractShop 
    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.String id;

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

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

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

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

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

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

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

    /** The value of the simple stauts property. */
    private java.lang.Integer status;

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

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

    /** The value of the simple createdate property. */
    private java.util.Date createdate;

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

    /**
     * Constructor of AbstractShop instances given a simple primary key.
     * @param id
     */
    public AbstractShop(java.lang.String id)
    {
        this.setId(id);
    }

    /**
     * Return the simple primary key value that identifies this object.
     * @return java.lang.String
     */
    public java.lang.String getId()
    {
        return id;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * Return the value of the stauts column.
     * @return java.lang.Integer
     */
    public java.lang.Integer getStatus()
    {
        return this.status;
    }

    /**
     * Set the value of the stauts column.
     * @param stauts
     */
    public void setStatus(java.lang.Integer status)
    {
        this.status = status;
    }

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

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

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

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

    /**
     * Return the value of the createdate column.
     * @return java.util.Date
     */
    public java.util.Date getCreatedate()
    {
        return this.createdate;
    }

    /**
     * Set the value of the createdate column.
     * @param createdate
     */
    public void setCreatedate(java.util.Date createdate)
    {
        this.createdate = createdate;
    }

    /**
     * Return the value of the shopid collection.
     * @return Price
     */
    public java.util.Set getPriceSet()
    {
        return this.priceSet;
    }

    /**
     * Set the value of the shopid collection.
     * @param priceSet
     */
    public void setPriceSet(java.util.Set priceSet)
    {
        this.priceSet = priceSet;
    }

    /**
     * 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 Shop))
            return false;
        Shop that = (Shop) rhs;
        if (this.getId() == null || that.getId() == null)
            return false;
        return (this.getId().equals(that.getId()));
    }

    /**
     * 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 idValue = this.getId() == null ? 0 : this.getId().hashCode();
            result = result * 37 + idValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }
}

⌨️ 快捷键说明

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