📄 basensadmingroup.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_group 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_group"
*/
public abstract class BaseNsAdminGroup extends com.singnet.bean.NsGroup implements Comparable, Serializable {
public static String REF = "NsAdminGroup";
public static String PROP_ID = "id";
// constructors
public BaseNsAdminGroup () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseNsAdminGroup (java.lang.Long id) {
super(id);
}
/**
* Constructor for required fields
*/
public BaseNsAdminGroup (
java.lang.Long id,
java.lang.String groupName) {
super (
id,
groupName);
}
private int hashCode = Integer.MIN_VALUE;
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.singnet.bean.NsAdminGroup)) return false;
else {
com.singnet.bean.NsAdminGroup nsAdminGroup = (com.singnet.bean.NsAdminGroup) obj;
if (null == this.getId() || null == nsAdminGroup.getId()) return false;
else return (this.getId().equals(nsAdminGroup.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 + -