📄 basegraphictype.java
字号:
package domain.model;
import java.io.Serializable;
/**
* This class has been automatically generated by Hibernate Synchronizer. * For more information or documentation, visit The Hibernate Synchronizer page * at http://www.binamics.com/hibernatesync or contact Joe Hudson at joe@binamics.com. * * This is an object that contains data related to the graphicType table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="graphicType"
*/
public abstract class BaseGraphicType implements Serializable {
public static String PROP_GRAPHICTYPE_NAME = "GraphictypeName";
public static String PROP_GRAPHICTYPE_MEMO = "GraphictypeMemo";
public static String PROP_ID = "Id";
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer _id;
// fields
private java.lang.String _graphictypeName;
private java.lang.String _graphictypeMemo;
// collections
private java.util.Set _graphicItemSet;
// constructors
public BaseGraphicType () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseGraphicType (java.lang.Integer _id) {
this.setId(_id);
initialize();
}
protected void initialize () {}
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="native"
* column="graphicType_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: graphicType_name
*/
public java.lang.String getGraphictypeName () {
return _graphictypeName;
}
/**
* Set the value related to the column: graphicType_name
* @param _graphictypeName the graphicType_name value
*/
public void setGraphictypeName (java.lang.String _graphictypeName) {
this._graphictypeName = _graphictypeName;
}
/**
* Return the value associated with the column: graphicType_memo
*/
public java.lang.String getGraphictypeMemo () {
return _graphictypeMemo;
}
/**
* Set the value related to the column: graphicType_memo
* @param _graphictypeMemo the graphicType_memo value
*/
public void setGraphictypeMemo (java.lang.String _graphictypeMemo) {
this._graphictypeMemo = _graphictypeMemo;
}
/** * Return the value associated with the column: GraphicItemSet */ public java.util.Set getGraphicItemSet () {
return this._graphicItemSet;
}
/**
* Set the value related to the column: GraphicItemSet
* @param _graphicItemSet the GraphicItemSet value
*/
public void setGraphicItemSet (java.util.Set _graphicItemSet) {
this._graphicItemSet = _graphicItemSet;
}
public void addToGraphicItemSet (Object obj) {
if (null == this._graphicItemSet) this._graphicItemSet = new java.util.HashSet();
this._graphicItemSet.add(obj);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof domain.model.BaseGraphicType)) return false;
else {
domain.model.BaseGraphicType mObj = (domain.model.BaseGraphicType) obj;
if (null == this.getId() || null == mObj.getId()) return false;
else return (this.getId().equals(mObj.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 + -