| Line 15... |
Line 15... |
| 15 |
import javax.persistence.UniqueConstraint;
|
15 |
import javax.persistence.UniqueConstraint;
|
| 16 |
|
16 |
|
| 17 |
import org.hibernate.annotations.UpdateTimestamp;
|
17 |
import org.hibernate.annotations.UpdateTimestamp;
|
| 18 |
|
18 |
|
| 19 |
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
|
19 |
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
|
| - |
|
20 |
import com.spice.profitmandi.dao.enumuration.dtr.MonthlySaleVolume;
|
| 20 |
import com.spice.profitmandi.dao.enumuration.dtr.RetailerType;
|
21 |
import com.spice.profitmandi.dao.enumuration.dtr.RetailerType;
|
| 21 |
import com.spice.profitmandi.dao.enumuration.dtr.SaleValue;
|
22 |
import com.spice.profitmandi.dao.enumuration.dtr.SaleValue;
|
| 22 |
|
23 |
|
| 23 |
/**
|
24 |
/**
|
| 24 |
* This class basically contains api details
|
25 |
* This class basically contains api details
|
| Line 65... |
Line 66... |
| 65 |
private RetailerType type;
|
66 |
private RetailerType type;
|
| 66 |
|
67 |
|
| 67 |
@Column(name = "monthly_sale_value")
|
68 |
@Column(name = "monthly_sale_value")
|
| 68 |
private SaleValue monthlySaleValue;
|
69 |
private SaleValue monthlySaleValue;
|
| 69 |
|
70 |
|
| 70 |
@Column(name = "smartphone_sale_value")
|
71 |
@Column(name = "monthly_sale_volume")
|
| 71 |
private SaleValue smartphoneSaleValue;
|
72 |
private MonthlySaleVolume monthlySaleVolume;
|
| 72 |
|
73 |
|
| 73 |
@Column(name = "recharge", columnDefinition="tinyint(1) default 0")
|
74 |
@Column(name = "recharge", columnDefinition="tinyint(1) default 0")
|
| 74 |
private boolean recharge;
|
75 |
private boolean recharge;
|
| 75 |
|
76 |
|
| 76 |
@Column(name = "mobile", columnDefinition="tinyint(1) default 0")
|
77 |
@Column(name = "mobile", columnDefinition="tinyint(1) default 0")
|
| Line 133... |
Line 134... |
| 133 |
return monthlySaleValue;
|
134 |
return monthlySaleValue;
|
| 134 |
}
|
135 |
}
|
| 135 |
public void setMonthlySaleValue(SaleValue monthlySaleValue) {
|
136 |
public void setMonthlySaleValue(SaleValue monthlySaleValue) {
|
| 136 |
this.monthlySaleValue = monthlySaleValue;
|
137 |
this.monthlySaleValue = monthlySaleValue;
|
| 137 |
}
|
138 |
}
|
| 138 |
public SaleValue getSmartphoneSaleValue() {
|
139 |
public MonthlySaleVolume getMonthlySaleVolume() {
|
| 139 |
return smartphoneSaleValue;
|
140 |
return monthlySaleVolume;
|
| 140 |
}
|
141 |
}
|
| 141 |
public void setSmartphoneSaleValue(SaleValue smartphoneSaleValue) {
|
142 |
public void setMonthlySaleVolume(MonthlySaleVolume monthlySaleVolume) {
|
| 142 |
this.smartphoneSaleValue = smartphoneSaleValue;
|
143 |
this.monthlySaleVolume = monthlySaleVolume;
|
| 143 |
}
|
144 |
}
|
| 144 |
|
145 |
|
| 145 |
public boolean isRecharge() {
|
146 |
public boolean isRecharge() {
|
| 146 |
return recharge;
|
147 |
return recharge;
|
| 147 |
}
|
148 |
}
|
| Line 250... |
Line 251... |
| 250 |
return true;
|
251 |
return true;
|
| 251 |
}
|
252 |
}
|
| 252 |
@Override
|
253 |
@Override
|
| 253 |
public String toString() {
|
254 |
public String toString() {
|
| 254 |
return "Retailer [id=" + id + ", name=" + name + ", number=" + number + ", type=" + type + ", monthlySaleValue="
|
255 |
return "Retailer [id=" + id + ", name=" + name + ", number=" + number + ", type=" + type + ", monthlySaleValue="
|
| 255 |
+ monthlySaleValue + ", smartphoneSaleValue=" + smartphoneSaleValue + ", recharge=" + recharge
|
256 |
+ monthlySaleValue + ", monthlySaleVolume=" + monthlySaleVolume + ", recharge=" + recharge
|
| 256 |
+ ", mobile=" + mobile + ", accessories=" + accessories + ", other1=" + other1 + ", other2=" + other2
|
257 |
+ ", mobile=" + mobile + ", accessories=" + accessories + ", other1=" + other1 + ", other2=" + other2
|
| 257 |
+ ", selfPickup=" + selfPickup + ", active=" + active + ", migrated=" + migrated + ", createTimestamp="
|
258 |
+ ", selfPickup=" + selfPickup + ", active=" + active + ", migrated=" + migrated + ", createTimestamp="
|
| 258 |
+ createTimestamp + ", updateTimestamp=" + updateTimestamp + ", documentId="
|
259 |
+ createTimestamp + ", updateTimestamp=" + updateTimestamp + ", documentId="
|
| 259 |
+ documentId + ", currentAddressId=" + currentAddressId + "]";
|
260 |
+ documentId + ", currentAddressId=" + currentAddressId + "]";
|
| 260 |
}
|
261 |
}
|