📄 basegraphicitem.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 graphicItem table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="graphicItem"
*/
public abstract class BaseGraphicItem implements Serializable {
public static String PROP_APPLETTYPE = "Applettype";
public static String PROP_GRAPHICITEM_ICOPATH = "GraphicitemIcopath";
public static String PROP_GRAPHICITEM_NAME = "GraphicitemName";
public static String PROP_GRAPHICTYPE = "Graphictype";
public static String PROP_ID = "Id";
public static String PROP_GRAPHICITEM_PATH = "GraphicitemPath";
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer _id;
// fields
private java.lang.String _graphicitemName;
private java.lang.String _graphicitemIcopath;
private java.lang.String _graphicitemPath;
// many to one
private domain.GraphicType _graphictype;
private domain.AppletType _applettype;
// collections
private java.util.Set _appGraphicItemSet;
// constructors
public BaseGraphicItem () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseGraphicItem (java.lang.Integer _id) {
this.setId(_id);
initialize();
}
/**
* Constructor for required fields
*/
public BaseGraphicItem (
java.lang.Integer _id,
domain.GraphicType _graphictype,
domain.AppletType _applettype,
java.lang.String _graphicitemPath) {
this.setId(_id);
this.setGraphictype(_graphictype);
this.setApplettype(_applettype);
this.setGraphicitemPath(_graphicitemPath);
initialize();
}
protected void initialize () {}
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="native"
* column="graphicItem_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: graphicItem_name
*/
public java.lang.String getGraphicitemName () {
return _graphicitemName;
}
/**
* Set the value related to the column: graphicItem_name
* @param _graphicitemName the graphicItem_name value
*/
public void setGraphicitemName (java.lang.String _graphicitemName) {
this._graphicitemName = _graphicitemName;
}
/**
* Return the value associated with the column: graphicItem_icopath
*/
public java.lang.String getGraphicitemIcopath () {
return _graphicitemIcopath;
}
/**
* Set the value related to the column: graphicItem_icopath
* @param _graphicitemIcopath the graphicItem_icopath value
*/
public void setGraphicitemIcopath (java.lang.String _graphicitemIcopath) {
this._graphicitemIcopath = _graphicitemIcopath;
}
/**
* Return the value associated with the column: graphicItem_path
*/
public java.lang.String getGraphicitemPath () {
return _graphicitemPath;
}
/**
* Set the value related to the column: graphicItem_path
* @param _graphicitemPath the graphicItem_path value
*/
public void setGraphicitemPath (java.lang.String _graphicitemPath) {
this._graphicitemPath = _graphicitemPath;
}
/**
* @hibernate.property
* column=graphicType_id
* not-null=true
*/
public domain.GraphicType getGraphictype () {
return this._graphictype;
}
/**
* Set the value related to the column: graphicType_id
* @param _graphictype the graphicType_id value
*/
public void setGraphictype (domain.GraphicType _graphictype) {
this._graphictype = _graphictype;
}
/**
* @hibernate.property
* column=appletType_id
* not-null=true
*/
public domain.AppletType getApplettype () {
return this._applettype;
}
/**
* Set the value related to the column: appletType_id
* @param _applettype the appletType_id value
*/
public void setApplettype (domain.AppletType _applettype) {
this._applettype = _applettype;
}
/** * Return the value associated with the column: AppGraphicItemSet */ public java.util.Set getAppGraphicItemSet () {
return this._appGraphicItemSet;
}
/**
* Set the value related to the column: AppGraphicItemSet
* @param _appGraphicItemSet the AppGraphicItemSet value
*/
public void setAppGraphicItemSet (java.util.Set _appGraphicItemSet) {
this._appGraphicItemSet = _appGraphicItemSet;
}
public void addToAppGraphicItemSet (Object obj) {
if (null == this._appGraphicItemSet) this._appGraphicItemSet = new java.util.HashSet();
this._appGraphicItemSet.add(obj);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof domain.model.BaseGraphicItem)) return false;
else {
domain.model.BaseGraphicItem mObj = (domain.model.BaseGraphicItem) 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 + -