basehousecheck.java
来自「一个购房管理系统,JSF+Hibernate+Mssql2」· Java 代码 · 共 276 行
JAVA
276 行
package com.housesale.hibernate.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the HouseCheck table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="HouseCheck"
*/
public abstract class BaseHouseCheck implements Serializable {
public static String REF = "HouseCheck";
public static String PROP_END_TIME = "endTime";
public static String PROP_CHECK_STATE = "checkState";
public static String PROP_HOUSE = "house";
public static String PROP_CHECK_PAYMENT = "checkPayment";
public static String PROP_CHECK_ID = "checkId";
public static String PROP_CUSTOMER = "customer";
public static String PROP_BZ = "bz";
public static String PROP_CHECK_MANAGER = "checkManager";
public static String PROP_CHECK_TIME = "checkTime";
// constructors
public BaseHouseCheck () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseHouseCheck (java.lang.Integer checkId) {
this.setCheckId(checkId);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer checkId;
// fields
private java.util.Date checkTime;
private java.util.Date endTime;
private java.lang.String checkState;
private java.lang.String checkManager;
private java.lang.Long checkPayment;
private java.lang.String bz;
// many to one
private com.housesale.hibernate.Customer customer;
private com.housesale.hibernate.House house;
// collections
private java.util.Set<com.housesale.hibernate.CheckPayment> checkPayments;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="assigned"
* column="CheckID"
*/
public java.lang.Integer getCheckId () {
return checkId;
}
/**
* Set the unique identifier of this class
* @param checkId the new ID
*/
public void setCheckId (java.lang.Integer checkId) {
this.checkId = checkId;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: CheckTime
*/
public java.util.Date getCheckTime () {
return checkTime;
}
/**
* Set the value related to the column: CheckTime
* @param checkTime the CheckTime value
*/
public void setCheckTime (java.util.Date checkTime) {
this.checkTime = checkTime;
}
/**
* Return the value associated with the column: EndTime
*/
public java.util.Date getEndTime () {
return endTime;
}
/**
* Set the value related to the column: EndTime
* @param endTime the EndTime value
*/
public void setEndTime (java.util.Date endTime) {
this.endTime = endTime;
}
/**
* Return the value associated with the column: CheckState
*/
public java.lang.String getCheckState () {
return checkState;
}
/**
* Set the value related to the column: CheckState
* @param checkState the CheckState value
*/
public void setCheckState (java.lang.String checkState) {
this.checkState = checkState;
}
/**
* Return the value associated with the column: CheckManager
*/
public java.lang.String getCheckManager () {
return checkManager;
}
/**
* Set the value related to the column: CheckManager
* @param checkManager the CheckManager value
*/
public void setCheckManager (java.lang.String checkManager) {
this.checkManager = checkManager;
}
/**
* Return the value associated with the column: CheckPayment
*/
public java.lang.Long getCheckPayment () {
return checkPayment;
}
/**
* Set the value related to the column: CheckPayment
* @param checkPayment the CheckPayment value
*/
public void setCheckPayment (java.lang.Long checkPayment) {
this.checkPayment = checkPayment;
}
/**
* Return the value associated with the column: Bz
*/
public java.lang.String getBz () {
return bz;
}
/**
* Set the value related to the column: Bz
* @param bz the Bz value
*/
public void setBz (java.lang.String bz) {
this.bz = bz;
}
/**
* Return the value associated with the column: CustomerID
*/
public com.housesale.hibernate.Customer getCustomer () {
return customer;
}
/**
* Set the value related to the column: CustomerID
* @param customer the CustomerID value
*/
public void setCustomer (com.housesale.hibernate.Customer customer) {
this.customer = customer;
}
/**
* Return the value associated with the column: HouseID
*/
public com.housesale.hibernate.House getHouse () {
return house;
}
/**
* Set the value related to the column: HouseID
* @param house the HouseID value
*/
public void setHouse (com.housesale.hibernate.House house) {
this.house = house;
}
/**
* Return the value associated with the column: checkPayments
*/
public java.util.Set<com.housesale.hibernate.CheckPayment> getCheckPayments () {
return checkPayments;
}
/**
* Set the value related to the column: checkPayments
* @param checkPayments the checkPayments value
*/
public void setCheckPayments (java.util.Set<com.housesale.hibernate.CheckPayment> checkPayments) {
this.checkPayments = checkPayments;
}
public void addTocheckPayments (com.housesale.hibernate.CheckPayment checkPayment) {
if (null == getCheckPayments()) setCheckPayments(new java.util.TreeSet<com.housesale.hibernate.CheckPayment>());
getCheckPayments().add(checkPayment);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.housesale.hibernate.HouseCheck)) return false;
else {
com.housesale.hibernate.HouseCheck houseCheck = (com.housesale.hibernate.HouseCheck) obj;
if (null == this.getCheckId() || null == houseCheck.getCheckId()) return false;
else return (this.getCheckId().equals(houseCheck.getCheckId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getCheckId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getCheckId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?