product.java

来自「采用最新Struts2+Hibernate架构开发」· Java 代码 · 共 93 行

JAVA
93
字号
package org.itfuture.www.po;

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


/**
 * Product generated by MyEclipse - Hibernate Tools
 */

public class Product  implements java.io.Serializable {


    // Fields    

     private String productid;
     private Category category;
     private String name;
     private String descn;
     private Set items = new HashSet(0);


    // Constructors

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

	/** minimal constructor */
    public Product(Category category) {
        this.category = category;
    }
    
    /** full constructor */
    public Product(Category category, String name, String descn, Set items) {
        this.category = category;
        this.name = name;
        this.descn = descn;
        this.items = items;
    }

   
    // Property accessors

    public String getProductid() {
        return this.productid;
    }
    
    public void setProductid(String 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 getDescn() {
        return this.descn;
    }
    
    public void setDescn(String descn) {
        this.descn = descn;
    }

    public Set getItems() {
        return this.items;
    }
    
    public void setItems(Set items) {
        this.items = items;
    }
   








}

⌨️ 快捷键说明

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