Subversion Repositories SmartDukaan

Rev

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