?? basemanager.java
字號(hào):
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";
// 構(gòu)造方法
public BaseManager () {
initialize();
}
/**
* 主鍵作為參數(shù)的構(gòu)造方法
*/
public BaseManager (java.lang.Integer id) {
this.setId(id);
initialize();
}
/**
* 各個(gè)屬性作為參數(shù)的構(gòu)造方法
*/
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();
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -