subtype.java

来自「ajax实战之tree java代码」· Java 代码 · 共 85 行

JAVA
85
字号
package model;

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

import org.apache.struts.action.ActionForm;


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

public class Subtype extends ActionForm  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Type type;
     private String subTypeName;
     private Set peoples = new HashSet(0);


    // Constructors

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

	/** minimal constructor */
    public Subtype(Type type) {
        this.type = type;
    }
    
    /** full constructor */
    public Subtype(Type type, String subTypeName, Set peoples) {
        this.type = type;
        this.subTypeName = subTypeName;
        this.peoples = peoples;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Type getType() {
        return this.type;
    }
    
    public void setType(Type type) {
        this.type = type;
    }

    public String getSubTypeName() {
        return this.subTypeName;
    }
    
    public void setSubTypeName(String subTypeName) {
        this.subTypeName = subTypeName;
    }

    public Set getPeoples() {
        return this.peoples;
    }
    
    public void setPeoples(Set peoples) {
        this.peoples = peoples;
    }
   








}

⌨️ 快捷键说明

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