basepayment.java
来自「一个购房管理系统,JSF+Hibernate+Mssql2」· Java 代码 · 共 175 行
JAVA
175 行
package com.housesale.hibernate.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the Payment table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="Payment"
*/
public abstract class BasePayment implements Serializable {
public static String REF = "Payment";
public static String PROP_HOUSE_SALE = "houseSale";
public static String PROP_PAYMENT = "payment";
public static String PROP_PAYMENT_TIME = "paymentTime";
public static String PROP_PAYMENT_ID = "paymentId";
public static String PROP_BZ = "bz";
// constructors
public BasePayment () {
initialize();
}
/**
* Constructor for primary key
*/
public BasePayment (java.lang.Integer paymentId) {
this.setPaymentId(paymentId);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer paymentId;
// fields
private java.util.Date paymentTime;
private java.lang.Long payment;
private java.lang.String bz;
// many to one
private com.housesale.hibernate.HouseSale houseSale;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="assigned"
* column="PaymentID"
*/
public java.lang.Integer getPaymentId () {
return paymentId;
}
/**
* Set the unique identifier of this class
* @param paymentId the new ID
*/
public void setPaymentId (java.lang.Integer paymentId) {
this.paymentId = paymentId;
this.hashCode = Integer.MIN_VALUE;
}
/**
* 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: SaleID
*/
public com.housesale.hibernate.HouseSale getHouseSale () {
return houseSale;
}
/**
* Set the value related to the column: SaleID
* @param houseSale the SaleID value
*/
public void setHouseSale (com.housesale.hibernate.HouseSale houseSale) {
this.houseSale = houseSale;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.housesale.hibernate.Payment)) return false;
else {
com.housesale.hibernate.Payment payment = (com.housesale.hibernate.Payment) obj;
if (null == this.getPaymentId() || null == payment.getPaymentId()) return false;
else return (this.getPaymentId().equals(payment.getPaymentId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getPaymentId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getPaymentId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?