category.java

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

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

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


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

public class Category  implements java.io.Serializable {


    // Fields    

     private String catid;
     private String name;
     private String descn;
     private Set products = new HashSet(0);


    // Constructors

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

    
    /** full constructor */
    public Category(String name, String descn, Set products) {
        this.name = name;
        this.descn = descn;
        this.products = products;
    }

   
    // Property accessors

    public String getCatid() {
        return this.catid;
    }
    
    public void setCatid(String catid) {
        this.catid = catid;
    }

    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 getProducts() {
        return this.products;
    }
    
    public void setProducts(Set products) {
        this.products = products;
    }
   








}

⌨️ 快捷键说明

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