Subversion Repositories SmartDukaan

Rev

Rev 33516 | Go to most recent revision | Details | 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;
21
    @Column(name = "startDate")
22
    private LocalDateTime startDate;
23
    @Column(name = "endDate")
24
    private LocalDateTime endDate;
25
 
26
    public BrandFee() {
27
    }
28
 
29
    public BrandFee(double studio, double arcade, double plaza, LocalDateTime startDate, LocalDateTime endDate) {
30
        this.studio = studio;
31
        this.arcade = arcade;
32
        this.plaza = plaza;
33
        this.startDate = startDate;
34
        this.endDate = endDate;
35
    }
36
 
37
    public double getFeeByStoreType(StoreType storeType) {
38
        switch (storeType) {
39
            case STUDIO:
40
                return this.studio;
41
            case PLAZA:
42
                return this.plaza;
43
            case ARCADE:
44
                return this.arcade;
45
            default:
46
                return 0;
47
        }
48
 
49
    }
50
 
51
    public Long getId() {
52
        return id;
53
    }
54
 
55
    public void setId(Long id) {
56
        this.id = id;
57
    }
58
 
59
    public double getStudio() {
60
        return studio;
61
    }
62
 
63
    public void setStudio(double studio) {
64
        this.studio = studio;
65
    }
66
 
67
    public double getArcade() {
68
        return arcade;
69
    }
70
 
71
    public void setArcade(double arcade) {
72
        this.arcade = arcade;
73
    }
74
 
75
    public double getPlaza() {
76
        return plaza;
77
    }
78
 
79
    public void setPlaza(double plaza) {
80
        this.plaza = plaza;
81
    }
82
 
83
    public LocalDateTime getStartDate() {
84
        return startDate;
85
    }
86
 
87
    public void setStartDate(LocalDateTime startDate) {
88
        this.startDate = startDate;
89
    }
90
 
91
    public LocalDateTime getEndDate() {
92
        return endDate;
93
    }
94
 
95
    public void setEndDate(LocalDateTime endDate) {
96
        this.endDate = endDate;
97
    }
98
 
99
    @Override
100
    public String toString() {
101
        return "BrandFee{" +
102
                "id=" + id +
103
                ", studio=" + studio +
104
                ", arcade=" + arcade +
105
                ", plaza=" + plaza +
106
                ", startDate=" + startDate +
107
                ", endDate=" + endDate +
108
                '}';
109
    }
110
}