choice.java

来自「企业管理信息系统 myeclipse+mysql+hibernate+stru」· Java 代码 · 共 86 行

JAVA
86
字号
package com.emis.model.vote.hibernate;

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


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

public class Choice  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Theme theme;
     private String name;
     private Set results = new HashSet(0);


    // Constructors

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

	/** minimal constructor */
    public Choice(Integer id, Theme theme, String name) {
        this.id = id;
        this.theme = theme;
        this.name = name;
    }
    
    /** full constructor */
    public Choice(Integer id, Theme theme, String name, Set results) {
        this.id = id;
        this.theme = theme;
        this.name = name;
        this.results = results;
    }

   
    // Property accessors

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

    public Theme getTheme() {
        return this.theme;
    }
    
    public void setTheme(Theme theme) {
        this.theme = theme;
    }

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

    public Set getResults() {
        return this.results;
    }
    
    public void setResults(Set results) {
        this.results = results;
    }
   








}

⌨️ 快捷键说明

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