Subversion Repositories SmartDukaan

Rev

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

Rev 34443 Rev 34492
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.catalog;
1
package com.spice.profitmandi.dao.entity.catalog;
2
 
2
 
3
import com.spice.profitmandi.common.model.ProfitMandiConstants;
3
import com.spice.profitmandi.common.model.ProfitMandiConstants;
4
 
4
 
5
import javax.persistence.*;
5
import javax.persistence.*;
6
import java.math.BigDecimal;
-
 
7
import java.time.LocalDate;
-
 
8
import java.time.LocalDateTime;
6
import java.time.LocalDateTime;
9
 
7
 
10
@Entity
8
@Entity
11
@Table(name = "fofo.liquidation_products")
9
@Table(name = "fofo.liquidation_products")
12
 
10
 
Line 33... Line 31...
33
    private float price;
31
    private float price;
34
 
32
 
35
    @Column(name = "quantity")
33
    @Column(name = "quantity")
36
    private int quantity;
34
    private int quantity;
37
 
35
 
-
 
36
    @Column(name = "increment_step")
-
 
37
    private int incrementStep;
-
 
38
 
38
    @Enumerated(EnumType.STRING)
39
    @Enumerated(EnumType.STRING)
39
    private ProfitMandiConstants.LIQUIDATION_ENUM status = ProfitMandiConstants.LIQUIDATION_ENUM.INACTIVE;
40
    private ProfitMandiConstants.LIQUIDATION_ENUM status = ProfitMandiConstants.LIQUIDATION_ENUM.INACTIVE;
40
 
41
 
41
    @Column(name = "created_by")
42
    @Column(name = "created_by")
42
    private Integer createdBy;
43
    private Integer createdBy;
Line 144... Line 145...
144
 
145
 
145
    public void setUpdatedAt(LocalDateTime updatedAt) {
146
    public void setUpdatedAt(LocalDateTime updatedAt) {
146
        this.updatedAt = updatedAt;
147
        this.updatedAt = updatedAt;
147
    }
148
    }
148
 
149
 
-
 
150
    public int getIncrementStep() {
-
 
151
        return incrementStep;
-
 
152
    }
-
 
153
 
-
 
154
    public void setIncrementStep(int incrementStep) {
-
 
155
        this.incrementStep = incrementStep;
-
 
156
    }
-
 
157
 
149
    @Override
158
    @Override
150
    public String toString() {
159
    public String toString() {
151
        return "Liquidation{" +
160
        return "Liquidation{" +
152
            "id=" + id +
161
                "id=" + id +
153
            ", restricted=" + restricted +
162
                ", restricted=" + restricted +
154
            ", catalogId=" + catalogId +
163
                ", catalogId=" + catalogId +
155
            ", startDate=" + startDate +
164
                ", startDate=" + startDate +
156
            ", endDate=" + endDate +
165
                ", endDate=" + endDate +
157
            ", price=" + price +
166
                ", price=" + price +
-
 
167
                ", quantity=" + quantity +
-
 
168
                ", incrementStep=" + incrementStep +
158
            ", status=" + status +
169
                ", status=" + status +
159
            ", createdBy=" + createdBy +
170
                ", createdBy=" + createdBy +
160
            ", createdAt=" + createdAt +
171
                ", createdAt=" + createdAt +
161
            ", updatedAt=" + updatedAt +
172
                ", updatedAt=" + updatedAt +
162
        '}';
173
                '}';
163
    }
174
    }
164
}
175
}