| 37164 |
amit |
1 |
package com.spice.profitmandi.dao.entity.user;
|
|
|
2 |
|
|
|
3 |
import javax.persistence.*;
|
|
|
4 |
import java.time.LocalDate;
|
|
|
5 |
import java.time.LocalDateTime;
|
|
|
6 |
|
|
|
7 |
/**
|
|
|
8 |
* One visit-discussion entry against an open agenda instance. Two people
|
|
|
9 |
* visiting the same partner on the same day write separate rows (each tied to
|
|
|
10 |
* their own location_tracking check-in row).
|
|
|
11 |
*/
|
|
|
12 |
@Entity
|
|
|
13 |
@NamedQueries({
|
|
|
14 |
@NamedQuery(
|
|
|
15 |
name = "AgendaVisitLog.selectByInstanceId",
|
|
|
16 |
query = "SELECT l FROM AgendaVisitLog l WHERE l.agendaInstanceId = :instanceId ORDER BY l.createdOn ASC")
|
|
|
17 |
})
|
|
|
18 |
@Table(name = "user.agenda_visit_log")
|
|
|
19 |
public class AgendaVisitLog {
|
|
|
20 |
|
|
|
21 |
@Id
|
|
|
22 |
@Column(name = "id", unique = true, updatable = false)
|
|
|
23 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
24 |
private int id;
|
|
|
25 |
|
|
|
26 |
@Column(name = "agenda_instance_id")
|
|
|
27 |
private int agendaInstanceId;
|
|
|
28 |
|
|
|
29 |
@Column(name = "location_tracking_id")
|
|
|
30 |
private Integer locationTrackingId;
|
|
|
31 |
|
|
|
32 |
// dtr.users.id (partner-app identity, same as location_tracking.user_id)
|
|
|
33 |
@Column(name = "visitor_user_id")
|
|
|
34 |
private int visitorUserId;
|
|
|
35 |
|
|
|
36 |
@Column(name = "visit_date")
|
|
|
37 |
private LocalDate visitDate;
|
|
|
38 |
|
|
|
39 |
@Column(name = "discussion")
|
|
|
40 |
private String discussion;
|
|
|
41 |
|
|
|
42 |
@Column(name = "created_on", insertable = false, updatable = false)
|
|
|
43 |
private LocalDateTime createdOn;
|
|
|
44 |
|
|
|
45 |
public int getId() {
|
|
|
46 |
return id;
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
public void setId(int id) {
|
|
|
50 |
this.id = id;
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
public int getAgendaInstanceId() {
|
|
|
54 |
return agendaInstanceId;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
public void setAgendaInstanceId(int agendaInstanceId) {
|
|
|
58 |
this.agendaInstanceId = agendaInstanceId;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public Integer getLocationTrackingId() {
|
|
|
62 |
return locationTrackingId;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
public void setLocationTrackingId(Integer locationTrackingId) {
|
|
|
66 |
this.locationTrackingId = locationTrackingId;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
public int getVisitorUserId() {
|
|
|
70 |
return visitorUserId;
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
public void setVisitorUserId(int visitorUserId) {
|
|
|
74 |
this.visitorUserId = visitorUserId;
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
public LocalDate getVisitDate() {
|
|
|
78 |
return visitDate;
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
public void setVisitDate(LocalDate visitDate) {
|
|
|
82 |
this.visitDate = visitDate;
|
|
|
83 |
}
|
|
|
84 |
|
|
|
85 |
public String getDiscussion() {
|
|
|
86 |
return discussion;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
public void setDiscussion(String discussion) {
|
|
|
90 |
this.discussion = discussion;
|
|
|
91 |
}
|
|
|
92 |
|
|
|
93 |
public LocalDateTime getCreatedOn() {
|
|
|
94 |
return createdOn;
|
|
|
95 |
}
|
|
|
96 |
}
|