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

📄 surveychildcount.java

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

import java.io.Serializable;
/**  *        @hibernate.class *         table="surveychildcount" *         dynamic-update="true" *         dynamic-insert="true" *     */
public class SurveyChildCount implements Serializable {
    /** 定义主键*/
    private Integer id;
    /** 定义调查子项目的id */
    private int surveyChildId;
    /**定义被选中的次数*/
    private int count = 0;
    /** 构造函数 */
    public SurveyChildCount(int surveyChildId, int count) {
        this.surveyChildId = surveyChildId;
        this.count = count;
    }
    /** 构造函数*/
    public SurveyChildCount() {
    }
    /** 获取主键     *            @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="surveyChildId"     *             length="4"     *             not-null="true"             */
    public int getSurveyChildId() {
        return this.surveyChildId;
    }
	//设定调查子项目
    public void setSurveyChildId(int surveyChildId) {
        this.surveyChildId = surveyChildId;
    }
    /** 获取被选中次数     *            @hibernate.property     *             column="count"     *             length="4"     *             not-null="true"             */
    public int getCount() {
        return this.count;
    }
	//设定调查子项目被选中次数
    public void setCount(int count) {
        this.count = count;
    }
}

⌨️ 快捷键说明

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