| 37164 |
amit |
1 |
package com.spice.profitmandi.dao.entity.user;
|
|
|
2 |
|
|
|
3 |
import javax.persistence.*;
|
|
|
4 |
import java.time.LocalDateTime;
|
|
|
5 |
|
|
|
6 |
/**
|
|
|
7 |
* Threshold config for AUTO agenda rules. fofoId = 0 is the global default row;
|
|
|
8 |
* a partner-specific row overrides the default per key. params is a flat JSON
|
|
|
9 |
* object of numeric values, e.g. {"flagPct":40,"clearPct":75}.
|
|
|
10 |
*/
|
|
|
11 |
@Entity
|
|
|
12 |
@NamedQueries({
|
|
|
13 |
@NamedQuery(
|
|
|
14 |
name = "AgendaRuleConfig.selectByType",
|
|
|
15 |
query = "SELECT c FROM AgendaRuleConfig c WHERE c.agendaType = :agendaType ORDER BY c.fofoId ASC"),
|
|
|
16 |
@NamedQuery(
|
|
|
17 |
name = "AgendaRuleConfig.selectByTypeAndFofo",
|
|
|
18 |
query = "SELECT c FROM AgendaRuleConfig c WHERE c.agendaType = :agendaType AND c.fofoId = :fofoId")
|
|
|
19 |
})
|
|
|
20 |
@Table(name = "user.agenda_rule_config")
|
|
|
21 |
public class AgendaRuleConfig {
|
|
|
22 |
|
|
|
23 |
@Id
|
|
|
24 |
@Column(name = "id", unique = true, updatable = false)
|
|
|
25 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
26 |
private int id;
|
|
|
27 |
|
|
|
28 |
@Column(name = "agenda_type")
|
|
|
29 |
private String agendaType;
|
|
|
30 |
|
|
|
31 |
@Column(name = "fofo_id")
|
|
|
32 |
private int fofoId;
|
|
|
33 |
|
|
|
34 |
@Column(name = "params")
|
|
|
35 |
private String params;
|
|
|
36 |
|
|
|
37 |
@Column(name = "updated_by")
|
|
|
38 |
private String updatedBy;
|
|
|
39 |
|
|
|
40 |
@Column(name = "updated_on", insertable = false, updatable = false)
|
|
|
41 |
private LocalDateTime updatedOn;
|
|
|
42 |
|
|
|
43 |
public int getId() {
|
|
|
44 |
return id;
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
public void setId(int id) {
|
|
|
48 |
this.id = id;
|
|
|
49 |
}
|
|
|
50 |
|
|
|
51 |
public String getAgendaType() {
|
|
|
52 |
return agendaType;
|
|
|
53 |
}
|
|
|
54 |
|
|
|
55 |
public void setAgendaType(String agendaType) {
|
|
|
56 |
this.agendaType = agendaType;
|
|
|
57 |
}
|
|
|
58 |
|
|
|
59 |
public int getFofoId() {
|
|
|
60 |
return fofoId;
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
public void setFofoId(int fofoId) {
|
|
|
64 |
this.fofoId = fofoId;
|
|
|
65 |
}
|
|
|
66 |
|
|
|
67 |
public String getParams() {
|
|
|
68 |
return params;
|
|
|
69 |
}
|
|
|
70 |
|
|
|
71 |
public void setParams(String params) {
|
|
|
72 |
this.params = params;
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
public String getUpdatedBy() {
|
|
|
76 |
return updatedBy;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
public void setUpdatedBy(String updatedBy) {
|
|
|
80 |
this.updatedBy = updatedBy;
|
|
|
81 |
}
|
|
|
82 |
|
|
|
83 |
public LocalDateTime getUpdatedOn() {
|
|
|
84 |
return updatedOn;
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
public void setUpdatedOn(LocalDateTime updatedOn) {
|
|
|
88 |
this.updatedOn = updatedOn;
|
|
|
89 |
}
|
|
|
90 |
}
|