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

📄 basemanager.java

📁 是Eclipse web开发从入门到精通的源码
💻 JAVA
字号:
package com.REP.bean.base;

import java.io.Serializable;


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

public abstract class BaseManager  implements Serializable {

	public static String REF = "Manager";
	public static String PROP_PASSWORD = "Password";
	public static String PROP_LOGIN_NAME = "LoginName";
	public static String PROP_ID = "Id";


	// 构造方法
	public BaseManager () {
		initialize();
	}

	/**
	 * 主键作为参数的构造方法
	 */
	public BaseManager (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	/**
	 * 各个属性作为参数的构造方法
	 */
	public BaseManager (
		java.lang.Integer id,
		java.lang.String loginName,
		java.lang.String password) {

		this.setId(id);
		this.setLoginName(loginName);
		this.setPassword(password);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// 主键
	private java.lang.Integer id;

	// 主要属性
	private java.lang.String loginName;
	private java.lang.String password;



	/**
	 * 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: loginName
	 */
	public java.lang.String getLoginName () {
		return loginName;
	}

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



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




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.REP.bean.Manager)) return false;
		else {
			com.REP.bean.Manager manager = (com.REP.bean.Manager) obj;
			if (null == this.getId() || null == manager.getId()) return false;
			else return (this.getId().equals(manager.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 + -