Subversion Repositories SmartDukaan

Rev

Rev 33516 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33516 Rev 33749
Line 16... Line 16...
16
    private double studio;
16
    private double studio;
17
    @Column(name = "arcade")
17
    @Column(name = "arcade")
18
    private double arcade;
18
    private double arcade;
19
    @Column(name = "plaza")
19
    @Column(name = "plaza")
20
    private double plaza;
20
    private double plaza;
-
 
21
    @Column(name = "special")
-
 
22
    private double special;
21
    @Column(name = "startDate")
23
    @Column(name = "startDate")
22
    private LocalDateTime startDate;
24
    private LocalDateTime startDate;
23
    @Column(name = "endDate")
25
    @Column(name = "endDate")
24
    private LocalDateTime endDate;
26
    private LocalDateTime endDate;
25
 
27
 
26
    public BrandFee() {
28
    public BrandFee() {
27
    }
29
    }
-
 
30
 
28
    public BrandFee(double studio, double arcade, double plaza, LocalDateTime startDate, LocalDateTime endDate) {
31
    public BrandFee(double studio, double arcade, double plaza, double special, LocalDateTime startDate, LocalDateTime endDate) {
29
        this.studio = studio;
32
        this.studio = studio;
30
        this.arcade = arcade;
33
        this.arcade = arcade;
31
        this.plaza = plaza;
34
        this.plaza = plaza;
-
 
35
        this.special = special;
32
        this.startDate = startDate;
36
        this.startDate = startDate;
33
        this.endDate = endDate;
37
        this.endDate = endDate;
34
    }
38
    }
35
 
39
 
36
    public double getFeeByStoreType(StoreType storeType) {
40
    public double getFeeByStoreType(StoreType storeType) {
Line 39... Line 43...
39
                return this.studio;
43
                return this.studio;
40
            case PLAZA:
44
            case PLAZA:
41
                return this.plaza;
45
                return this.plaza;
42
            case ARCADE:
46
            case ARCADE:
43
                return this.arcade;
47
                return this.arcade;
-
 
48
            case SPECIAL:
-
 
49
                return this.special;
44
            default:
50
            default:
45
                return 0;
51
                return 0;
46
        }
52
        }
47
 
53
 
48
    }
54
    }
49
 
55
 
-
 
56
    public double getSpecial() {
-
 
57
        return special;
-
 
58
    }
-
 
59
 
-
 
60
    public void setSpecial(double special) {
-
 
61
        this.special = special;
-
 
62
    }
-
 
63
 
50
    public Long getId() {
64
    public Long getId() {
51
        return id;
65
        return id;
52
    }
66
    }
53
 
67
 
54
    public void setId(Long id) {
68
    public void setId(Long id) {
Line 100... Line 114...
100
        return "BrandFee{" +
114
        return "BrandFee{" +
101
                "id=" + id +
115
                "id=" + id +
102
                ", studio=" + studio +
116
                ", studio=" + studio +
103
                ", arcade=" + arcade +
117
                ", arcade=" + arcade +
104
                ", plaza=" + plaza +
118
                ", plaza=" + plaza +
-
 
119
                ", special=" + special +
105
                ", startDate=" + startDate +
120
                ", startDate=" + startDate +
106
                ", endDate=" + endDate +
121
                ", endDate=" + endDate +
107
                '}';
122
                '}';
108
    }
123
    }
109
}
124
}