user.java

来自「这是一个用ibatis实现持久层的 配置文件的例子 希望对初学者有帮助。」· Java 代码 · 共 101 行

JAVA
101
字号
package cn.com.tarena.ecport.pojo;

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

/**
 * <pre>
 * 用户Pojo
 * 此Pojo映射数据库中的User表
 * </pre>
 * 
 * @author zhouyu 2008-1-16
 */
public class User extends BasePojo {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7920033419851593861L;

	private String userid;//�û�ID
	
	private String password;//�û�����
	
	private Set orderses = new HashSet();
	
    //private Set contactinfos = new HashSet(0);;//�û���ϸ��Ϣ
    
    private ContactInfo contactinfo;

//  Constructors

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

	/** minimal constructor */
    public User(String userid, String password) {
        this.userid = userid;
        this.password = password;
    }
    
    /** full constructor */
    public User(String userid, String password, Set orderses, ContactInfo contactinfo) {
        this.userid = userid;
        this.password = password;
        this.orderses = orderses;
        this.contactinfo = contactinfo;
    }

   
    // Property accessors

    public String getUserid() {
        return this.userid;
    }
    
    public void setUserid(String userid) {
        this.userid = userid;
    }

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

    public Set getOrderses() {
        return this.orderses;
    }
    
    public void setOrderses(Set orderses) {
        this.orderses = orderses;
    }

   /* public Set getContactinfos() {
        return this.contactinfos;
    }
    
    public void setContactinfos(Set contactinfos) {
        this.contactinfos = contactinfos;
    }*/

	/**
	 * @return the contactinfo
	 */
	public ContactInfo getContactinfo() {
		return contactinfo;
	}

	/**
	 * @param contactinfo the contactinfo to set
	 */
	public void setContactinfo(ContactInfo contactinfo) {
		this.contactinfo = contactinfo;
	}
    
    
}

⌨️ 快捷键说明

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