Subversion Repositories SmartDukaan

Rev

Rev 33516 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33511 tejus.loha 1
package com.spice.profitmandi.dao.entity.brandFee;
2
 
3
import com.spice.profitmandi.dao.enumuration.onBorading.onBoardingFormEnums.StoreType;
4
 
5
import javax.persistence.*;
6
import java.time.LocalDateTime;
7
 
8
@Entity
9
@Table(name = "fofo.brand_fee")
10
public class BrandFee {
11
    @Id
12
    @GeneratedValue(strategy = GenerationType.IDENTITY)
13
    @Column(name = "id", nullable = false)
14
    private Long id;
15
    @Column(name = "studio")
16
    private double studio;
17
    @Column(name = "arcade")
18
    private double arcade;
19
    @Column(name = "plaza")
20
    private double plaza;
33749 tejus.loha 21
    @Column(name = "special")
22
    private double special;
33511 tejus.loha 23
    @Column(name = "startDate")
24
    private LocalDateTime startDate;
25
    @Column(name = "endDate")
26
    private LocalDateTime endDate;
27
 
28
    public BrandFee() {
29
    }
33749 tejus.loha 30
 
31
    public BrandFee(double studio, double arcade, double plaza, double special, LocalDateTime startDate, LocalDateTime endDate) {
33511 tejus.loha 32
        this.studio = studio;
33
        this.arcade = arcade;
34
        this.plaza = plaza;
33749 tejus.loha 35
        this.special = special;
33511 tejus.loha 36
        this.startDate = startDate;
37
        this.endDate = endDate;
38
    }
39
 
40
    public double getFeeByStoreType(StoreType storeType) {
41
        switch (storeType) {
42
            case STUDIO:
43
                return this.studio;
44
            case PLAZA:
45
                return this.plaza;
46
            case ARCADE:
47
                return this.arcade;
33749 tejus.loha 48
            case SPECIAL:
49
                return this.special;
33511 tejus.loha 50
            default:
51
                return 0;
52
        }
53
 
54
    }
55
 
33749 tejus.loha 56
    public double getSpecial() {
57
        return special;
58
    }
59
 
60
    public void setSpecial(double special) {
61
        this.special = special;
62
    }
63
 
33511 tejus.loha 64
    public Long getId() {
65
        return id;
66
    }
67
 
68
    public void setId(Long id) {
69
        this.id = id;
70
    }
71
 
72
    public double getStudio() {
73
        return studio;
74
    }
75
 
76
    public void setStudio(double studio) {
77
        this.studio = studio;
78
    }
79
 
80
    public double getArcade() {
81
        return arcade;
82
    }
83
 
84
    public void setArcade(double arcade) {
85
        this.arcade = arcade;
86
    }
87
 
88
    public double getPlaza() {
89
        return plaza;
90
    }
91
 
92
    public void setPlaza(double plaza) {
93
        this.plaza = plaza;
94
    }
95
 
96
    public LocalDateTime getStartDate() {
97
        return startDate;
98
    }
99
 
100
    public void setStartDate(LocalDateTime startDate) {
101
        this.startDate = startDate;
102
    }
103
 
104
    public LocalDateTime getEndDate() {
105
        return endDate;
106
    }
107
 
108
    public void setEndDate(LocalDateTime endDate) {
109
        this.endDate = endDate;
110
    }
111
 
112
    @Override
113
    public String toString() {
114
        return "BrandFee{" +
115
                "id=" + id +
116
                ", studio=" + studio +
117
                ", arcade=" + arcade +
118
                ", plaza=" + plaza +
33749 tejus.loha 119
                ", special=" + special +
33511 tejus.loha 120
                ", startDate=" + startDate +
121
                ", endDate=" + endDate +
122
                '}';
123
    }
124
}