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

📄 userinfo.java

📁 典型实用的利用tapstry、spring、hibernate、框架的实例
💻 JAVA
字号:
/*
 * Created on 2004-10-31
 * 
 * http://www.open-v.com 提供代码的维护工作
 */
package com.openv.spring.service.hibernate;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * @hibernate.class table="userinfo"
 *  
 */
public class UserInfo implements Serializable {

    /** identifier field */
    private String id;

    /** nullable persistent field */
    private String username;

    /** nullable persistent field */
    private String password;

    /** nullable persistent field */
    private String email;

    /** nullable persistent field */
    private String country;

    /** full constructor */
    public UserInfo(String id, String username, String password, String email,
            String country) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.email = email;
        this.country = country;
    }

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

    /** minimal constructor */
    public UserInfo(String id) {
        this.id = id;
    }

    /**
     * @hibernate.id generator-class="assigned" type="java.lang.String"
     *               column="id"
     *  
     */
    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    /**
     * @hibernate.property column="country" length="60"
     */
    public String getCountry() {
        return country;
    }

    /**
     * @param country
     *            The country to set.
     */
    public void setCountry(String country) {
        this.country = country;
    }

    /**
     * @hibernate.property column="email" length="60"
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email
     *            The email to set.
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @hibernate.property column="password" length="48"
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password
     *            The password to set.
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @hibernate.property column="username" length="36"
     *  
     */
    public String getUsername() {
        return this.username;
    }

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

    public String toString() {
        return new ToStringBuilder(this).append("id", getId()).toString();
    }
}

⌨️ 快捷键说明

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