📄 baseaccessories.java
字号:
package com.t60.oa.po.base;
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 Accessories table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="Accessories"
*/
public abstract class BaseAccessories implements Serializable {
public static String PROP_SIZE = "size";
public static String PROP_NAME = "name";
public static String PROP_CREATE_DATE = "createDate";
public static String PROP_ID = "id";
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.String _id;
// fields
private java.util.Date _createDate;
private java.lang.Integer _size;
private java.lang.String _name;
// collections
private java.util.Collection _offMoveSet;
// constructors
public BaseAccessories () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseAccessories (java.lang.String _id) {
this.setId(_id);
initialize();
}
protected void initialize () {}
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="assigned"
* column="id"
*/
public java.lang.String getId () {
return _id;
}
/**
* Set the unique identifier of this class
* @param _id the new ID
*/
public void setId (java.lang.String _id) {
this._id = _id;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: createDate
*/
public java.util.Date getCreateDate () {
return _createDate;
}
/**
* Set the value related to the column: createDate
* @param _createDate the createDate value
*/
public void setCreateDate (java.util.Date _createDate) {
this._createDate = _createDate;
}
/**
* Return the value associated with the column: size
*/
public java.lang.Integer getSize () {
return _size;
}
/**
* Set the value related to the column: size
* @param _size the size value
*/
public void setSize (java.lang.Integer _size) {
this._size = _size;
}
/**
* 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: offMoveSet */ public java.util.Collection getOffMoveSet () {
return this._offMoveSet;
}
/**
* Set the value related to the column: offMoveSet
* @param _offMoveSet the offMoveSet value
*/
public void setOffMoveSet (java.util.Collection _offMoveSet) {
this._offMoveSet = _offMoveSet;
}
public void addToOffMoveSet (Object obj) {
if (null == this._offMoveSet) this._offMoveSet = new java.util.ArrayList();
this._offMoveSet.add(obj);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.t60.oa.po.base.BaseAccessories)) return false;
else {
com.t60.oa.po.base.BaseAccessories mObj = (com.t60.oa.po.base.BaseAccessories) 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 + -