Rev 35154 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model;import java.util.Objects;public class BrandAuthUserPOModel {private int authUserId;private String brand;private long todayPOValue;private long todayPOBilledValue;private long todayBilledValue;private int partiesBilled;public BrandAuthUserPOModel(Integer authUserId,String brand,Long todayPOValue,Long todayPOBilledValue,Long todayBilledValue,Integer partiesBilled) {this.authUserId = authUserId;this.brand = brand != null ? brand : "-";this.todayPOValue = todayPOValue != null ? todayPOValue : 0L;this.todayPOBilledValue = todayPOBilledValue != null ? todayPOBilledValue : 0L;this.todayBilledValue = todayBilledValue != null ? todayBilledValue : 0L;this.partiesBilled = partiesBilled != null ? partiesBilled : 0;}public BrandAuthUserPOModel() {}public int getAuthUserId() {return authUserId;}public void setAuthUserId(int authUserId) {this.authUserId = authUserId;}public String getBrand() {return brand;}public void setBrand(String brand) {this.brand = brand;}public long getTodayPOValue() {return todayPOValue;}public void setTodayPOValue(long todayPOValue) {this.todayPOValue = todayPOValue;}public long getTodayPOBilledValue() {return todayPOBilledValue;}public void setTodayPOBilledValue(long todayPOBilledValue) {this.todayPOBilledValue = todayPOBilledValue;}public long getTodayBilledValue() {return todayBilledValue;}public void setTodayBilledValue(long todayBilledValue) {this.todayBilledValue = todayBilledValue;}public int getPartiesBilled() {return partiesBilled;}public void setPartiesBilled(int partiesBilled) {this.partiesBilled = partiesBilled;}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;BrandAuthUserPOModel that = (BrandAuthUserPOModel) o;return authUserId == that.authUserId && todayPOValue == that.todayPOValue && todayPOBilledValue == that.todayPOBilledValue && todayBilledValue == that.todayBilledValue && partiesBilled == that.partiesBilled && Objects.equals(brand, that.brand);}@Overridepublic int hashCode() {return Objects.hash(authUserId, brand, todayPOValue, todayPOBilledValue, todayBilledValue, partiesBilled);}@Overridepublic String toString() {return "BrandAuthUserPOModel{" +"authUserId=" + authUserId +", brand='" + brand + '\'' +", todayPOValue=" + todayPOValue +", todayPOBilledValue=" + todayPOBilledValue +", todayBilledValue=" + todayBilledValue +", partiesBilled=" + partiesBilled +'}';}}