Subversion Repositories SmartDukaan

Rev

Rev 35463 | Rev 35961 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35463 Rev 35848
Line 191... Line 191...
191
    private LocalDate trialStart;
191
    private LocalDate trialStart;
192
 
192
 
193
    @Column(name = "trial_end")
193
    @Column(name = "trial_end")
194
    private LocalDate trialEnd;
194
    private LocalDate trialEnd;
195
 
195
 
196
    @Column(name = "minimum_investment_old")
-
 
197
    private float minimumInvestmentOld;
-
 
198
 
-
 
199
    public FofoStore() {
196
    public FofoStore() {
200
    }
197
    }
201
 
198
 
202
    public int getAstId() {
199
    public int getAstId() {
203
        return astId;
200
        return astId;
Line 305... Line 302...
305
 
302
 
306
    public float getMinimumInvestment() {
303
    public float getMinimumInvestment() {
307
        return minimumInvestment;
304
        return minimumInvestment;
308
    }
305
    }
309
 
306
 
310
    public float getMinimumInvestmentOld() {
-
 
311
        return minimumInvestmentOld;
-
 
312
    }
-
 
313
 
-
 
314
    public void setMinimumInvestmentOld(float minimumInvestmentOld) {
-
 
315
        this.minimumInvestmentOld = minimumInvestmentOld;
-
 
316
    }
-
 
317
 
-
 
318
    public void setMinimumInvestment(float minimumInvestment) {
307
    public void setMinimumInvestment(float minimumInvestment) {
319
        this.minimumInvestment = minimumInvestment;
308
        this.minimumInvestment = minimumInvestment;
320
    }
309
    }
321
 
310
 
322
    /*
311
    /*
Line 421... Line 410...
421
 
410
 
422
    @Override
411
    @Override
423
    public boolean equals(Object o) {
412
    public boolean equals(Object o) {
424
        if (o == null || getClass() != o.getClass()) return false;
413
        if (o == null || getClass() != o.getClass()) return false;
425
        FofoStore fofoStore = (FofoStore) o;
414
        FofoStore fofoStore = (FofoStore) o;
426
        return id == fofoStore.id && codeInt == fofoStore.codeInt && Float.compare(counterPotential, fofoStore.counterPotential) == 0 && warehouseId == fofoStore.warehouseId && Float.compare(minimumInvestment, fofoStore.minimumInvestment) == 0 && investmentOk == fofoStore.investmentOk && active == fofoStore.active && internal == fofoStore.internal && target == fofoStore.target && graceCount == fofoStore.graceCount && astId == fofoStore.astId && trial == fofoStore.trial && Float.compare(minimumInvestmentOld, fofoStore.minimumInvestmentOld) == 0 && Objects.equals(code, fofoStore.code) && Objects.equals(latitude, fofoStore.latitude) && Objects.equals(longitude, fofoStore.longitude) && counterSize == fofoStore.counterSize && Objects.equals(graceDate, fofoStore.graceDate) && Objects.equals(pan, fofoStore.pan) && Objects.equals(userAddress, fofoStore.userAddress) && Objects.equals(bagsLastCredited, fofoStore.bagsLastCredited) && fofoType == fofoStore.fofoType && activationType == fofoStore.activationType && Objects.equals(activeTimeStamp, fofoStore.activeTimeStamp) && Objects.equals(gstNumber, fofoStore.gstNumber) && Objects.equals(trialStart, fofoStore.trialStart) && Objects.equals(trialEnd, fofoStore.trialEnd);
415
        return id == fofoStore.id && codeInt == fofoStore.codeInt && Float.compare(counterPotential, fofoStore.counterPotential) == 0 && warehouseId == fofoStore.warehouseId && Float.compare(minimumInvestment, fofoStore.minimumInvestment) == 0 && investmentOk == fofoStore.investmentOk && active == fofoStore.active && internal == fofoStore.internal && target == fofoStore.target && graceCount == fofoStore.graceCount && astId == fofoStore.astId && trial == fofoStore.trial && Objects.equals(code, fofoStore.code) && Objects.equals(latitude, fofoStore.latitude) && Objects.equals(longitude, fofoStore.longitude) && counterSize == fofoStore.counterSize && Objects.equals(graceDate, fofoStore.graceDate) && Objects.equals(pan, fofoStore.pan) && Objects.equals(userAddress, fofoStore.userAddress) && Objects.equals(bagsLastCredited, fofoStore.bagsLastCredited) && fofoType == fofoStore.fofoType && activationType == fofoStore.activationType && Objects.equals(activeTimeStamp, fofoStore.activeTimeStamp) && Objects.equals(gstNumber, fofoStore.gstNumber) && Objects.equals(trialStart, fofoStore.trialStart) && Objects.equals(trialEnd, fofoStore.trialEnd);
427
    }
416
    }
428
 
417
 
429
    @Override
418
    @Override
430
    public int hashCode() {
419
    public int hashCode() {
431
        return Objects.hash(id, codeInt, code, latitude, longitude, counterSize, counterPotential, warehouseId, minimumInvestment, graceDate, investmentOk, active, pan, userAddress, internal, bagsLastCredited, fofoType, activationType, activeTimeStamp, target, graceCount, astId, gstNumber, trial, trialStart, trialEnd, minimumInvestmentOld);
420
        return Objects.hash(id, codeInt, code, latitude, longitude, counterSize, counterPotential, warehouseId, minimumInvestment, graceDate, investmentOk, active, pan, userAddress, internal, bagsLastCredited, fofoType, activationType, activeTimeStamp, target, graceCount, astId, gstNumber, trial, trialStart, trialEnd);
432
    }
421
    }
433
 
422
 
434
    @Override
423
    @Override
435
    public String toString() {
424
    public String toString() {
436
        return "FofoStore{" +
425
        return "FofoStore{" +
Line 458... Line 447...
458
                ", astId=" + astId +
447
                ", astId=" + astId +
459
                ", gstNumber='" + gstNumber + '\'' +
448
                ", gstNumber='" + gstNumber + '\'' +
460
                ", trial=" + trial +
449
                ", trial=" + trial +
461
                ", trialStart=" + trialStart +
450
                ", trialStart=" + trialStart +
462
                ", trialEnd=" + trialEnd +
451
                ", trialEnd=" + trialEnd +
463
                ", minimumInvestmentOld=" + minimumInvestmentOld +
-
 
464
                '}';
452
                '}';
465
    }
453
    }
466
 
454
 
467
    @JsonIgnore
455
    @JsonIgnore
468
    public boolean isExpired() throws ProfitMandiBusinessException{
456
    public boolean isExpired() throws ProfitMandiBusinessException{