Rev 30158 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model;import java.time.LocalDateTime;public class PriceDropReportModel {private String code;private int id;private String brand;private String modelName;private String modelNumber;private LocalDateTime affectedOn;private float amount;private float partnerPayout;private String imei;private String status;private LocalDateTime updateTimestamp;private String rejectionReason;private LocalDateTime creditTimestamp;private LocalDateTime rejectedTimestamp;public PriceDropReportModel() {super();// TODO Auto-generated constructor stub}public PriceDropReportModel(String code, int id, String brand, String modelName, String modelNumber,LocalDateTime affectedOn, float amount, float partnerPayout, String imei, String status,LocalDateTime updateTimestamp, String rejectionReason, LocalDateTime creditTimestamp, LocalDateTime rejectedTimestamp) {super();this.code = code;this.id = id;this.brand = brand;this.modelName = modelName;this.modelNumber = modelNumber;this.affectedOn = affectedOn;this.amount = amount;this.partnerPayout = partnerPayout;this.imei = imei;this.status = status;this.updateTimestamp = updateTimestamp;this.rejectionReason = rejectionReason;this.creditTimestamp = creditTimestamp;this.rejectedTimestamp = rejectedTimestamp;}public LocalDateTime getCreditTimestamp() {return creditTimestamp;}public void setCreditTimestamp(LocalDateTime creditTimestamp) {this.creditTimestamp = creditTimestamp;}public LocalDateTime getRejectedTimestamp() {return rejectedTimestamp;}public void setRejectedTimestamo(LocalDateTime rejectedTimestamo) {this.rejectedTimestamp = rejectedTimestamo;}public String getCode() {return code;}public void setCode(String code) {this.code = code;}public int getId() {return id;}public void setId(int id) {this.id = id;}public String getBrand() {return brand;}public void setBrand(String brand) {this.brand = brand;}public String getModelName() {return modelName;}public void setModelName(String modelName) {this.modelName = modelName;}public String getModelNumber() {return modelNumber;}public void setModelNumber(String modelNumber) {this.modelNumber = modelNumber;}public LocalDateTime getAffectedOn() {return affectedOn;}public void setAffectedOn(LocalDateTime affectedOn) {this.affectedOn = affectedOn;}public float getAmount() {return amount;}public void setAmount(float amount) {this.amount = amount;}public float getPartnerPayout() {return partnerPayout;}public void setPartnerPayout(float partnerPayout) {this.partnerPayout = partnerPayout;}public String getImei() {return imei;}public void setImei(String imei) {this.imei = imei;}public String getStatus() {return status;}public void setStatus(String status) {this.status = status;}public LocalDateTime getUpdateTimestamp() {return updateTimestamp;}public void setUpdateTimestamp(LocalDateTime updateTimestamp) {this.updateTimestamp = updateTimestamp;}public String getRejectionReason() {return rejectionReason;}public void setRejectionReason(String rejectionReason) {this.rejectionReason = rejectionReason;}@Overridepublic String toString() {return "PriceDropReportModel [code=" + code + ", id=" + id + ", brand=" + brand + ", modelName=" + modelName+ ", modelNumber=" + modelNumber + ", affectedOn=" + affectedOn + ", amount=" + amount+ ", partnerPayout=" + partnerPayout + ", imei=" + imei + ", status=" + status + ", updateTimestamp="+ updateTimestamp + ", rejectionReason=" + rejectionReason + "]";}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + ((affectedOn == null) ? 0 : affectedOn.hashCode());result = prime * result + Float.floatToIntBits(amount);result = prime * result + ((brand == null) ? 0 : brand.hashCode());result = prime * result + ((code == null) ? 0 : code.hashCode());result = prime * result + id;result = prime * result + ((imei == null) ? 0 : imei.hashCode());result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());result = prime * result + Float.floatToIntBits(partnerPayout);result = prime * result + ((rejectionReason == null) ? 0 : rejectionReason.hashCode());result = prime * result + ((status == null) ? 0 : status.hashCode());result = prime * result + ((updateTimestamp == null) ? 0 : updateTimestamp.hashCode());return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;PriceDropReportModel other = (PriceDropReportModel) obj;if (affectedOn == null) {if (other.affectedOn != null)return false;} else if (!affectedOn.equals(other.affectedOn))return false;if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))return false;if (brand == null) {if (other.brand != null)return false;} else if (!brand.equals(other.brand))return false;if (code == null) {if (other.code != null)return false;} else if (!code.equals(other.code))return false;if (id != other.id)return false;if (imei == null) {if (other.imei != null)return false;} else if (!imei.equals(other.imei))return false;if (modelName == null) {if (other.modelName != null)return false;} else if (!modelName.equals(other.modelName))return false;if (modelNumber == null) {if (other.modelNumber != null)return false;} else if (!modelNumber.equals(other.modelNumber))return false;if (Float.floatToIntBits(partnerPayout) != Float.floatToIntBits(other.partnerPayout))return false;if (rejectionReason == null) {if (other.rejectionReason != null)return false;} else if (!rejectionReason.equals(other.rejectionReason))return false;if (status == null) {if (other.status != null)return false;} else if (!status.equals(other.status))return false;if (updateTimestamp == null) {if (other.updateTimestamp != null)return false;} else if (!updateTimestamp.equals(other.updateTimestamp))return false;return true;}}