| 28117 |
tejbeer |
1 |
package com.spice.profitmandi.dao.entity.catalog;
|
|
|
2 |
|
|
|
3 |
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
|
|
|
4 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
|
|
5 |
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
|
|
|
6 |
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
|
|
|
7 |
|
| 30121 |
amit.gupta |
8 |
import javax.persistence.*;
|
|
|
9 |
import java.time.LocalDateTime;
|
|
|
10 |
|
| 28117 |
tejbeer |
11 |
@Entity
|
| 31860 |
tejbeer |
12 |
@Table(name = "catalog.view_scheme_item")
|
| 28117 |
tejbeer |
13 |
public class SchemeItemView {
|
|
|
14 |
@Id
|
|
|
15 |
@Column(name = "id")
|
|
|
16 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
17 |
private int id;
|
|
|
18 |
|
|
|
19 |
@Column(name = "name")
|
|
|
20 |
private String name;
|
|
|
21 |
|
|
|
22 |
@Column(name = "description")
|
|
|
23 |
private String description;
|
|
|
24 |
|
|
|
25 |
@Column(name = "type")
|
|
|
26 |
@Enumerated(EnumType.STRING)
|
|
|
27 |
private SchemeType type;
|
|
|
28 |
|
|
|
29 |
@Column(name = "amount_type")
|
|
|
30 |
@Enumerated(EnumType.STRING)
|
|
|
31 |
private AmountType amountType;
|
|
|
32 |
|
|
|
33 |
@Column(name = "amount")
|
|
|
34 |
private float amount;
|
|
|
35 |
|
|
|
36 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
37 |
@Column(name = "start_date_time")
|
|
|
38 |
private LocalDateTime startDateTime = LocalDateTime.now();
|
|
|
39 |
|
|
|
40 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
41 |
@Column(name = "end_date_time")
|
|
|
42 |
private LocalDateTime endDateTime = LocalDateTime.now();
|
|
|
43 |
|
|
|
44 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
45 |
@Column(name = "create_timestamp")
|
|
|
46 |
private LocalDateTime createTimestamp = LocalDateTime.now();
|
|
|
47 |
|
|
|
48 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
49 |
@Column(name = "active_timestamp")
|
|
|
50 |
private LocalDateTime activeTimestamp = null;
|
|
|
51 |
|
|
|
52 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
53 |
@Column(name = "expire_timestamp")
|
|
|
54 |
private LocalDateTime expireTimestamp = null;
|
|
|
55 |
|
|
|
56 |
@Column(name = "created_by")
|
|
|
57 |
private int createdBy;
|
|
|
58 |
|
|
|
59 |
@Column
|
|
|
60 |
private boolean cashback;
|
|
|
61 |
|
|
|
62 |
@Column(name = "partner_type")
|
|
|
63 |
@Enumerated(EnumType.STRING)
|
|
|
64 |
private PartnerType partnerType;
|
|
|
65 |
|
| 30121 |
amit.gupta |
66 |
@Column(name = "catalog_id")
|
|
|
67 |
private int catalogId;
|
| 28117 |
tejbeer |
68 |
|
|
|
69 |
}
|