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

📄 basesysuser.java

📁 hibernate+spring+struts一个简单例子
💻 JAVA
字号:
package com.bean.sys.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the sys_user table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="sys_user"
 */

public abstract class BaseSysUser  implements Serializable {

	public static String REF = "SysUser";
	public static String PROP_PASSWORD = "Password";
	public static String PROP_LOCAL = "Local";
	public static String PROP_SEX = "Sex";
	public static String PROP_LOGTIME = "Logtime";
	public static String PROP_VISIBLE = "Visible";
	public static String PROP_IP = "Ip";
	public static String PROP_NAME = "Name";
	public static String PROP_DEPARTMENT = "Department";
	public static String PROP_ID = "Id";
	public static String PROP_GROUP = "Group";
	public static String PROP_LEVEL = "Level";


	// constructors
	public BaseSysUser () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseSysUser (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseSysUser (
		java.lang.Integer id,
		com.bean.sys.SysDimLevel level,
		com.bean.sys.SysGroup group,
		com.bean.sys.SysDimLocal local,
		com.bean.sys.SysDimDepartment department,
		java.lang.String name,
		java.lang.String password,
		java.lang.String sex,
		java.lang.String ip,
		java.util.Date logtime,
		java.lang.String visible) {

		this.setId(id);
		this.setLevel(level);
		this.setGroup(group);
		this.setLocal(local);
		this.setDepartment(department);
		this.setName(name);
		this.setPassword(password);
		this.setSex(sex);
		this.setIp(ip);
		this.setLogtime(logtime);
		this.setVisible(visible);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String name;
	private java.lang.String password;
	private java.lang.String sex;
	private java.lang.String ip;
	private java.util.Date logtime;
	private java.lang.String visible;

	// many to one
	private com.bean.sys.SysDimLevel level;
	private com.bean.sys.SysGroup group;
	private com.bean.sys.SysDimLocal local;
	private com.bean.sys.SysDimDepartment department;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="increment"
     *  column="id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: name
	 */
	public java.lang.String getName () {
		return name;
	}

	/**
	 * Set the value related to the column: name
	 * @param name the name value
	 */
	public void setName (java.lang.String name) {
		this.name = name;
	}



	/**
	 * Return the value associated with the column: password
	 */
	public java.lang.String getPassword () {
		return password;
	}

	/**
	 * Set the value related to the column: password
	 * @param password the password value
	 */
	public void setPassword (java.lang.String password) {
		this.password = password;
	}



	/**
	 * Return the value associated with the column: sex
	 */
	public java.lang.String getSex () {
		return sex;
	}

	/**
	 * Set the value related to the column: sex
	 * @param sex the sex value
	 */
	public void setSex (java.lang.String sex) {
		this.sex = sex;
	}



	/**
	 * Return the value associated with the column: ip
	 */
	public java.lang.String getIp () {
		return ip;
	}

	/**
	 * Set the value related to the column: ip
	 * @param ip the ip value
	 */
	public void setIp (java.lang.String ip) {
		this.ip = ip;
	}



	/**
	 * Return the value associated with the column: logtime
	 */
	public java.util.Date getLogtime () {
		return logtime;
	}

	/**
	 * Set the value related to the column: logtime
	 * @param logtime the logtime value
	 */
	public void setLogtime (java.util.Date logtime) {
		this.logtime = logtime;
	}



	/**
	 * Return the value associated with the column: visible
	 */
	public java.lang.String getVisible () {
		return visible;
	}

	/**
	 * Set the value related to the column: visible
	 * @param visible the visible value
	 */
	public void setVisible (java.lang.String visible) {
		this.visible = visible;
	}



	/**
	 * Return the value associated with the column: level
	 */
	public com.bean.sys.SysDimLevel getLevel () {
		return level;
	}

	/**
	 * Set the value related to the column: level
	 * @param level the level value
	 */
	public void setLevel (com.bean.sys.SysDimLevel level) {
		this.level = level;
	}



	/**
	 * Return the value associated with the column: group
	 */
	public com.bean.sys.SysGroup getGroup () {
		return group;
	}

	/**
	 * Set the value related to the column: group
	 * @param group the group value
	 */
	public void setGroup (com.bean.sys.SysGroup group) {
		this.group = group;
	}



	/**
	 * Return the value associated with the column: local
	 */
	public com.bean.sys.SysDimLocal getLocal () {
		return local;
	}

	/**
	 * Set the value related to the column: local
	 * @param local the local value
	 */
	public void setLocal (com.bean.sys.SysDimLocal local) {
		this.local = local;
	}



	/**
	 * Return the value associated with the column: department
	 */
	public com.bean.sys.SysDimDepartment getDepartment () {
		return department;
	}

	/**
	 * Set the value related to the column: department
	 * @param department the department value
	 */
	public void setDepartment (com.bean.sys.SysDimDepartment department) {
		this.department = department;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.bean.sys.SysUser)) return false;
		else {
			com.bean.sys.SysUser sysUser = (com.bean.sys.SysUser) obj;
			if (null == this.getId() || null == sysUser.getId()) return false;
			else return (this.getId().equals(sysUser.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}

⌨️ 快捷键说明

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