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

📄 product.java

📁 企业内部培训系统
💻 JAVA
字号:
package cn.com.tarena.ecport.pojo;

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

/**
 * <pre>
 * 商品Pojo
 * 此Pojo映射数据库中的Product表
 * </pre>
 * 
 * @author zhouyu 2008-1-16
 */
public class Product extends BasePojo {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3109438140368973528L;

	private Long productid;// ��Ʒ��������к�

	private String name;// ͼ����

	private Double baseprice;// ����
	
	private String description; //��Ʒ����

	private String author;// ����

	private String publish; // �������

	private Long pages;// ��ҳ��

	private String images;// ͼƬ����·��

	private Category category;// ������Ϣ
	
    private Set orderlines = new HashSet(0);

//  Constructors

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

	/** minimal constructor */
    public Product(String name, Double baseprice, String author, String publish) {
        this.name = name;
        this.baseprice = baseprice;
        this.author = author;
        this.publish = publish;
    }
    
    /** full constructor */
    public Product(Category category, String name, String description, Double baseprice, String author, String publish, Long pages, String images, Set orderlines) {
        this.category = category;
        this.name = name;
        this.description = description;
        this.baseprice = baseprice;
        this.author = author;
        this.publish = publish;
        this.pages = pages;
        this.images = images;
        this.orderlines = orderlines;
    }

   
    // Property accessors

    public Long getProductid() {
        return this.productid;
    }
    
    public void setProductid(Long productid) {
        this.productid = productid;
    }

    public Category getCategory() {
        return this.category;
    }
    
    public void setCategory(Category category) {
        this.category = category;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }

    public Double getBaseprice() {
        return this.baseprice;
    }
    
    public void setBaseprice(Double baseprice) {
        this.baseprice = baseprice;
    }

    public String getAuthor() {
        return this.author;
    }
    
    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublish() {
        return this.publish;
    }
    
    public void setPublish(String publish) {
        this.publish = publish;
    }

    public Long getPages() {
        return this.pages;
    }
    
    public void setPages(Long pages) {
        this.pages = pages;
    }

    public String getImages() {
        return this.images;
    }
    
    public void setImages(String images) {
        this.images = images;
    }

    public Set getOrderlines() {
        return this.orderlines;
    }
    
    public void setOrderlines(Set orderlines) {
        this.orderlines = orderlines;
    }
    
    /****************
     * toString method
     */
    public String toString() {
    	return "["+name+","+baseprice+","+author+","+publish+","+description+"]";
    }
}

⌨️ 快捷键说明

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