basecheckpayment.java
来自「一个购房管理系统,JSF+Hibernate+Mssql2」· Java 代码 · 共 194 行
JAVA
194 行
package com.housesale.hibernate.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the CheckPayment table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="CheckPayment"
*/
public abstract class BaseCheckPayment implements Serializable {
public static String REF = "CheckPayment";
public static String PROP_CHECK_PAYMENT_ID = "checkPaymentId";
public static String PROP_HOUSE_CHECK = "houseCheck";
public static String PROP_PAYMENT = "payment";
public static String PROP_PAYMENT_TIME = "paymentTime";
public static String PROP_PAYMENT_STYLE = "paymentStyle";
public static String PROP_BZ = "bz";
// constructors
public BaseCheckPayment () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseCheckPayment (java.lang.Integer checkPaymentId) {
this.setCheckPaymentId(checkPaymentId);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer checkPaymentId;
// fields
private java.lang.String paymentStyle;
private java.util.Date paymentTime;
private java.lang.Long payment;
private java.lang.String bz;
// many to one
private com.housesale.hibernate.HouseCheck houseCheck;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="native"
* column="CheckPaymentID"
*/
public java.lang.Integer getCheckPaymentId () {
return checkPaymentId;
}
/**
* Set the unique identifier of this class
* @param checkPaymentId the new ID
*/
public void setCheckPaymentId (java.lang.Integer checkPaymentId) {
this.checkPaymentId = checkPaymentId;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: PaymentStyle
*/
public java.lang.String getPaymentStyle () {
return paymentStyle;
}
/**
* Set the value related to the column: PaymentStyle
* @param paymentStyle the PaymentStyle value
*/
public void setPaymentStyle (java.lang.String paymentStyle) {
this.paymentStyle = paymentStyle;
}
/**
* Return the value associated with the column: PaymentTime
*/
public java.util.Date getPaymentTime () {
return paymentTime;
}
/**
* Set the value related to the column: PaymentTime
* @param paymentTime the PaymentTime value
*/
public void setPaymentTime (java.util.Date paymentTime) {
this.paymentTime = paymentTime;
}
/**
* Return the value associated with the column: Payment
*/
public java.lang.Long getPayment () {
return payment;
}
/**
* Set the value related to the column: Payment
* @param payment the Payment value
*/
public void setPayment (java.lang.Long payment) {
this.payment = payment;
}
/**
* 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: CheckID
*/
public com.housesale.hibernate.HouseCheck getHouseCheck () {
return houseCheck;
}
/**
* Set the value related to the column: CheckID
* @param houseCheck the CheckID value
*/
public void setHouseCheck (com.housesale.hibernate.HouseCheck houseCheck) {
this.houseCheck = houseCheck;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.housesale.hibernate.CheckPayment)) return false;
else {
com.housesale.hibernate.CheckPayment checkPayment = (com.housesale.hibernate.CheckPayment) obj;
if (null == this.getCheckPaymentId() || null == checkPayment.getCheckPaymentId()) return false;
else return (this.getCheckPaymentId().equals(checkPayment.getCheckPaymentId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getCheckPaymentId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getCheckPaymentId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?