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