📄 baseappgraphicitem.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 appGraphicItem table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="appGraphicItem"
*/
public abstract class BaseAppGraphicItem implements Serializable {
public static String PROP_GRAPHICITEM = "Graphicitem";
public static String PROP_APPGRAPHICITEM_Y = "AppgraphicitemY";
public static String PROP_APPGRAPHICITEM_MEMO = "AppgraphicitemMemo";
public static String PROP_APPGRAPHIC = "Appgraphic";
public static String PROP_ID = "Id";
public static String PROP_APPGRAPHICITEM_X = "AppgraphicitemX";
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer _id;
// fields
private java.lang.Integer _appgraphicitemY;
private java.lang.String _appgraphicitemMemo;
private java.lang.Integer _appgraphicitemX;
// many to one
private domain.AppGraphic _appgraphic;
private domain.GraphicItem _graphicitem;
// constructors
public BaseAppGraphicItem () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseAppGraphicItem (java.lang.Integer _id) {
this.setId(_id);
initialize();
}
/**
* Constructor for required fields
*/
public BaseAppGraphicItem (
java.lang.Integer _id,
domain.AppGraphic _appgraphic,
domain.GraphicItem _graphicitem) {
this.setId(_id);
this.setAppgraphic(_appgraphic);
this.setGraphicitem(_graphicitem);
initialize();
}
protected void initialize () {}
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="native"
* column="appGraphicItem_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: appGraphicItem_y
*/
public java.lang.Integer getAppgraphicitemY () {
return _appgraphicitemY;
}
/**
* Set the value related to the column: appGraphicItem_y
* @param _appgraphicitemY the appGraphicItem_y value
*/
public void setAppgraphicitemY (java.lang.Integer _appgraphicitemY) {
this._appgraphicitemY = _appgraphicitemY;
}
/**
* Return the value associated with the column: appGraphicItem_memo
*/
public java.lang.String getAppgraphicitemMemo () {
return _appgraphicitemMemo;
}
/**
* Set the value related to the column: appGraphicItem_memo
* @param _appgraphicitemMemo the appGraphicItem_memo value
*/
public void setAppgraphicitemMemo (java.lang.String _appgraphicitemMemo) {
this._appgraphicitemMemo = _appgraphicitemMemo;
}
/**
* Return the value associated with the column: appGraphicItem_x
*/
public java.lang.Integer getAppgraphicitemX () {
return _appgraphicitemX;
}
/**
* Set the value related to the column: appGraphicItem_x
* @param _appgraphicitemX the appGraphicItem_x value
*/
public void setAppgraphicitemX (java.lang.Integer _appgraphicitemX) {
this._appgraphicitemX = _appgraphicitemX;
}
/**
* @hibernate.property
* column=appGraphic_id
* not-null=true
*/
public domain.AppGraphic getAppgraphic () {
return this._appgraphic;
}
/**
* Set the value related to the column: appGraphic_id
* @param _appgraphic the appGraphic_id value
*/
public void setAppgraphic (domain.AppGraphic _appgraphic) {
this._appgraphic = _appgraphic;
}
/**
* @hibernate.property
* column=graphicItem_id
* not-null=true
*/
public domain.GraphicItem getGraphicitem () {
return this._graphicitem;
}
/**
* Set the value related to the column: graphicItem_id
* @param _graphicitem the graphicItem_id value
*/
public void setGraphicitem (domain.GraphicItem _graphicitem) {
this._graphicitem = _graphicitem;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof domain.model.BaseAppGraphicItem)) return false;
else {
domain.model.BaseAppGraphicItem mObj = (domain.model.BaseAppGraphicItem) 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 + -