📄 basensadmin.java
字号:
package com.singnet.bean.base;
import java.lang.Comparable;
import java.io.Serializable;
/**
* This is an object that contains data related to the ns_admin table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="ns_admin"
*/
public abstract class BaseNsAdmin implements Comparable, Serializable {
public static String REF = "NsAdmin";
public static String PROP_ADMIN_PWD = "adminPwd";
public static String PROP_ADMIN_PID = "adminPid";
public static String PROP_ADMIN_NAME = "adminName";
public static String PROP_ADMIN_TYPE = "adminType";
public static String PROP_ADMIN_TYPE_NAME = "adminTypeName";
public static String PROP_ID = "id";
// constructors
public BaseNsAdmin () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseNsAdmin (java.lang.Long id) {
this.setId(id);
initialize();
}
/**
* Constructor for required fields
*/
public BaseNsAdmin (
java.lang.Long id,
java.lang.Long adminPid,
java.lang.String adminName,
java.lang.String adminPwd,
java.lang.Integer adminType,
java.lang.String adminTypeName) {
this.setId(id);
this.setAdminPid(adminPid);
this.setAdminName(adminName);
this.setAdminPwd(adminPwd);
this.setAdminType(adminType);
this.setAdminTypeName(adminTypeName);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Long id;
// fields
private java.lang.Long adminPid;
private java.lang.String adminName;
private java.lang.String adminPwd;
private java.lang.Integer adminType;
private java.lang.String adminTypeName;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="native"
* column="id"
*/
public java.lang.Long getId () {
return id;
}
/**
* Set the unique identifier of this class
* @param id the new ID
*/
public void setId (java.lang.Long id) {
this.id = id;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: admin_pid
*/
public java.lang.Long getAdminPid () {
return adminPid;
}
/**
* Set the value related to the column: admin_pid
* @param adminPid the admin_pid value
*/
public void setAdminPid (java.lang.Long adminPid) {
this.adminPid = adminPid;
}
/**
* Return the value associated with the column: admin_name
*/
public java.lang.String getAdminName () {
return adminName;
}
/**
* Set the value related to the column: admin_name
* @param adminName the admin_name value
*/
public void setAdminName (java.lang.String adminName) {
this.adminName = adminName;
}
/**
* Return the value associated with the column: admin_pwd
*/
public java.lang.String getAdminPwd () {
return adminPwd;
}
/**
* Set the value related to the column: admin_pwd
* @param adminPwd the admin_pwd value
*/
public void setAdminPwd (java.lang.String adminPwd) {
this.adminPwd = adminPwd;
}
/**
* Return the value associated with the column: admin_type
*/
public java.lang.Integer getAdminType () {
return adminType;
}
/**
* Set the value related to the column: admin_type
* @param adminType the admin_type value
*/
public void setAdminType (java.lang.Integer adminType) {
this.adminType = adminType;
}
/**
* Return the value associated with the column: admin_typeName
*/
public java.lang.String getAdminTypeName () {
return adminTypeName;
}
/**
* Set the value related to the column: admin_typeName
* @param adminTypeName the admin_typeName value
*/
public void setAdminTypeName (java.lang.String adminTypeName) {
this.adminTypeName = adminTypeName;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.singnet.bean.NsAdmin)) return false;
else {
com.singnet.bean.NsAdmin nsAdmin = (com.singnet.bean.NsAdmin) obj;
if (null == this.getId() || null == nsAdmin.getId()) return false;
else return (this.getId().equals(nsAdmin.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 int compareTo (Object obj) {
if (obj.hashCode() > hashCode()) return 1;
else if (obj.hashCode() < hashCode()) return -1;
else return 0;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -