TavernerPOS - Source Code
Clone:
git clone http://www.librarysmith.co.uk/tavernerPOS
package com.floreantpos.model.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the TRANSACTIONS table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="TRANSACTIONS"
*/
public abstract class BaseRefundTransaction extends com.floreantpos.model.PosTransaction implements Comparable, Serializable {
public static String REF = "RefundTransaction"; //$NON-NLS-1$
public static String PROP_ID = "id"; //$NON-NLS-1$
// constructors
public BaseRefundTransaction () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseRefundTransaction (java.lang.Integer id) {
super(id);
}
/**
* Constructor for required fields
*/
public BaseRefundTransaction (
java.lang.Integer id,
java.lang.String transactionType,
java.lang.String paymentType) {
super (
id,
transactionType,
paymentType);
}
private int hashCode = Integer.MIN_VALUE;
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.floreantpos.model.RefundTransaction)) return false;
else {
com.floreantpos.model.RefundTransaction refundTransaction = (com.floreantpos.model.RefundTransaction) obj;
if (null == this.getId() || null == refundTransaction.getId()) return false;
else return (this.getId().equals(refundTransaction.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(); //$NON-NLS-1$
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public int compareTo (Object obj) {
if (obj.hashCode() > hashCode()) return 1;
else if (obj.hashCode() < hashCode()) return -1;
else return 0;
}
public String toString () {
return super.toString();
}
}
- Details
- Last Updated: Monday, 04 April 2016 02:04
- Hits: 39816272