Rev 21759 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.model;import java.time.LocalDateTime;public class CustomTransaction {private int id;private LocalDateTime createTimestamp;private double totalAmount;private ShippingAddress shippingAddress;private float shippingCost;private ShippedOrder shipped;private UnshippedOrder unshipped;public int getId() {return id;}public void setId(int id) {this.id = id;}public LocalDateTime getCreateTimestamp() {return createTimestamp;}public void setCreateTimestamp(LocalDateTime createTimestamp) {this.createTimestamp = createTimestamp;}public double getTotalAmount() {return totalAmount;}public void setTotalAmount(double totalAmount) {this.totalAmount = totalAmount;}public ShippingAddress getShippingAddress() {return shippingAddress;}public void setShippingAddress(ShippingAddress shippingAddress) {this.shippingAddress = shippingAddress;}public float getShippingCost() {return shippingCost;}public void setShippingCost(float shippingCost) {this.shippingCost = shippingCost;}public ShippedOrder getShipped() {return shipped;}public void setShipped(ShippedOrder shipped) {this.shipped = shipped;}public UnshippedOrder getUnshipped() {return unshipped;}public void setUnshipped(UnshippedOrder unshipped) {this.unshipped = unshipped;}@Overridepublic boolean equals(Object object) {if(!(object instanceof CustomTransaction)){return false;}CustomTransaction customTransaction = (CustomTransaction)object;if(this.id == customTransaction.id){return true;}else{return false;}}@Overridepublic String toString() {return "CustomTransaction [id=" + id + ", createTimestamp=" + createTimestamp + ", totalAmount=" + totalAmount+ ", shippingAddress=" + shippingAddress + ", shippingCost=" + shippingCost + ", shipped=" + shipped+ ", unshipped=" + unshipped + "]";}}