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

📄 surveychild.java

📁 简单的网上调查系统。采用Spring+Hibernate方式设计架构。
💻 JAVA
字号:
package com.mySurvey.bean;

import java.io.Serializable;
/**  *        @hibernate.class *         table="surveychild" *         dynamic-update="true" *         dynamic-insert="true"   */
public class SurveyChild implements Serializable {
    /**定义主键 */
    private Integer id;

    /** 定义调查项目id*/
    private int surveyOptionId;

    /**定义调查子项目名称*/
    private String name;

    /**定义填写方式*/
    private int type;

    /** 构造函数*/
    public SurveyChild(int surveyOptionId, String name, int type) {
        this.surveyOptionId = surveyOptionId;
        this.name = name;
        this.type = type;
    }

    /** 构造函数*/
    public SurveyChild() {
    }
    /** 获取主键     *            @hibernate.id     *             generator-class="native"     *             type="java.lang.Integer"     *             column="id"     *              */
    public Integer getId() {
        return this.id;
    }
	//设定主键
    public void setId(Integer id) {
        this.id = id;
    }
    /** 获取调查项目的id     *            @hibernate.property     *             column="surveyOptionId"     *             length="4"     *             not-null="true"     *              */
    public int getSurveyOptionId() {
        return this.surveyOptionId;
    }
	//设定调查项目id
    public void setSurveyOptionId(int surveyOptionId) {
        this.surveyOptionId = surveyOptionId;
    }
    /** 获取调查子项目的名称     *            @hibernate.property     *             column="name"     *             length="50"     *             not-null="true"             */
    public String getName() {
        return this.name;
    }
	//设定调查子项目的名称
    public void setName(String name) {
        this.name = name;
    }
    /** 获取填写方式     *            @hibernate.property     *             column="option"     *             length="4"     *             not-null="true"     *              */
    public int getType() {
        return this.type;
    }
	//设定填写方式
    public void setType(int type) {
        this.type = type;
    }
}

⌨️ 快捷键说明

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