abstractuserorder.java

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

JAVA
231
字号
/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Fri Feb 17 09:51:25 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 userorder table. 
 * You can customize the behavior of this class by editing the class, {@link Userorder()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractUserorder 
    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 user association. */
    private User user;

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

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

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

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

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

    public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

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

    /**
     * Constructor of AbstractUserorder instances given a simple primary key.
     * @param id
     */
    public AbstractUserorder(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 fileurl column.
     * @return java.lang.String
     */
    public java.lang.String getFileurl()
    {
        return this.fileurl;
    }

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

    /**
     * Return the value of the userid column.
     * @return User
     */
    public User getUser()
    {
        return this.user;
    }

    /**
     * Set the value of the userid column.
     * @param user
     */
    public void setUser(User user)
    {
        this.user = user;
    }

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

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

    /**
     * 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 status column.
     * @return java.lang.Short
     */
    public java.lang.Short getStatus()
    {
        return this.status;
    }

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

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

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


	/**
     * 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 Userorder))
            return false;
        Userorder that = (Userorder) 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 + -
显示快捷键?