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

📄 user.java

📁 程序天下源码 实例讲解Hibernate与cvs用法
💻 JAVA
字号:
package com.myHibernate.bean;

import java.io.Serializable;
import org.apache.struts.action.ActionForm;


/**  *        @hibernate.class *         table="user" *         dynamic-update="true" *         dynamic-insert="true" *     */
public class User  extends ActionForm implements Serializable {

    /** identifier field */
    private Integer id;

    /** persistent field */
    private String username;

    /** persistent field */
    private String password;

    /** full constructor */
    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

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

    /**      *            @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;
    }

    /**      *            @hibernate.property     *             column="username"     *             length="32"     *             not-null="true"     *              */
    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    /**      *            @hibernate.property     *             column="password"     *             length="32"     *             not-null="true"     *              */
    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}

⌨️ 快捷键说明

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