📄 basesysdimlevel.java
字号:
package com.bean.sys.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the sys_dim_level 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_dim_level"
*/
public abstract class BaseSysDimLevel implements Serializable {
public static String REF = "SysDimLevel";
public static String PROP_DESCRIPTION = "Description";
public static String PROP_CODE = "Code";
public static String PROP_NAME = "Name";
public static String PROP_ID = "Id";
// constructors
public BaseSysDimLevel () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseSysDimLevel (java.lang.Integer id) {
this.setId(id);
initialize();
}
/**
* Constructor for required fields
*/
public BaseSysDimLevel (
java.lang.Integer id,
java.lang.String code,
java.lang.String name,
java.lang.String description) {
this.setId(id);
this.setCode(code);
this.setName(name);
this.setDescription(description);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer id;
// fields
private java.lang.String code;
private java.lang.String name;
private java.lang.String description;
// collections
private java.util.Set<com.bean.sys.SysUser> sysUsers;
/**
* 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: code
*/
public java.lang.String getCode () {
return code;
}
/**
* Set the value related to the column: code
* @param code the code value
*/
public void setCode (java.lang.String code) {
this.code = code;
}
/**
* 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: description
*/
public java.lang.String getDescription () {
return description;
}
/**
* Set the value related to the column: description
* @param description the description value
*/
public void setDescription (java.lang.String description) {
this.description = description;
}
/**
* Return the value associated with the column: SysUsers
*/
public java.util.Set<com.bean.sys.SysUser> getSysUsers () {
return sysUsers;
}
/**
* Set the value related to the column: SysUsers
* @param sysUsers the SysUsers value
*/
public void setSysUsers (java.util.Set<com.bean.sys.SysUser> sysUsers) {
this.sysUsers = sysUsers;
}
public void addToSysUsers (com.bean.sys.SysUser sysUser) {
if (null == getSysUsers()) setSysUsers(new java.util.TreeSet<com.bean.sys.SysUser>());
getSysUsers().add(sysUser);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.bean.sys.SysDimLevel)) return false;
else {
com.bean.sys.SysDimLevel sysDimLevel = (com.bean.sys.SysDimLevel) obj;
if (null == this.getId() || null == sysDimLevel.getId()) return false;
else return (this.getId().equals(sysDimLevel.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 + -