Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.user;import javax.persistence.*;import java.time.LocalDateTime;/*** Threshold config for AUTO agenda rules. fofoId = 0 is the global default row;* a partner-specific row overrides the default per key. params is a flat JSON* object of numeric values, e.g. {"flagPct":40,"clearPct":75}.*/@Entity@NamedQueries({@NamedQuery(name = "AgendaRuleConfig.selectByType",query = "SELECT c FROM AgendaRuleConfig c WHERE c.agendaType = :agendaType ORDER BY c.fofoId ASC"),@NamedQuery(name = "AgendaRuleConfig.selectByTypeAndFofo",query = "SELECT c FROM AgendaRuleConfig c WHERE c.agendaType = :agendaType AND c.fofoId = :fofoId")})@Table(name = "user.agenda_rule_config")public class AgendaRuleConfig {@Id@Column(name = "id", unique = true, updatable = false)@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name = "agenda_type")private String agendaType;@Column(name = "fofo_id")private int fofoId;@Column(name = "params")private String params;@Column(name = "updated_by")private String updatedBy;@Column(name = "updated_on", insertable = false, updatable = false)private LocalDateTime updatedOn;public int getId() {return id;}public void setId(int id) {this.id = id;}public String getAgendaType() {return agendaType;}public void setAgendaType(String agendaType) {this.agendaType = agendaType;}public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}public String getParams() {return params;}public void setParams(String params) {this.params = params;}public String getUpdatedBy() {return updatedBy;}public void setUpdatedBy(String updatedBy) {this.updatedBy = updatedBy;}public LocalDateTime getUpdatedOn() {return updatedOn;}public void setUpdatedOn(LocalDateTime updatedOn) {this.updatedOn = updatedOn;}}