Subversion Repositories SmartDukaan

Rev

Rev 32923 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32923 Rev 32940
Line 27... Line 27...
27
    @Id
27
    @Id
28
    @Column(name = "id", unique = true, updatable = false)
28
    @Column(name = "id", unique = true, updatable = false)
29
    @GeneratedValue(strategy = GenerationType.IDENTITY)
29
    @GeneratedValue(strategy = GenerationType.IDENTITY)
30
    private int id;
30
    private int id;
31
 
31
 
32
    @Column(name = "ticket_id")
32
    @Column(name = "activity_id")
33
    private int ticketId;
33
    private int activityId;
34
 
34
 
35
    @Column(name = "created_by")
35
    @Column(name = "created_by")
36
    private int createdBy;
36
    private int createdBy;
37
 
37
 
38
    @Column(name = "create_timestamp")
38
    @Column(name = "create_timestamp")
Line 48... Line 48...
48
    private LocalDateTime callTime;
48
    private LocalDateTime callTime;
49
 
49
 
50
    @Column(name = "media_url")
50
    @Column(name = "media_url")
51
    private String mediaUrl;
51
    private String mediaUrl;
52
 
52
 
53
    public int getTicketId() {
53
    public int getId() {
54
        return ticketId;
54
        return id;
55
    }
55
    }
56
 
56
 
-
 
57
    public void setId(int id) {
-
 
58
        this.id = id;
-
 
59
    }
-
 
60
 
-
 
61
    public int getActivityId() {
-
 
62
        return activityId;
-
 
63
    }
-
 
64
 
57
    public void setTicketId(int ticketId) {
65
    public void setActivityId(int activityId) {
58
        this.ticketId = ticketId;
66
        this.activityId = activityId;
59
    }
67
    }
60
 
68
 
61
 
69
 
62
    public String getMobile() {
70
    public String getMobile() {
63
        return mobile;
71
        return mobile;
Line 111... Line 119...
111
    @Override
119
    @Override
112
    public boolean equals(Object o) {
120
    public boolean equals(Object o) {
113
        if (this == o) return true;
121
        if (this == o) return true;
114
        if (o == null || getClass() != o.getClass()) return false;
122
        if (o == null || getClass() != o.getClass()) return false;
115
        TicketActivityMedia that = (TicketActivityMedia) o;
123
        TicketActivityMedia that = (TicketActivityMedia) o;
116
        return ticketId == that.ticketId && createdBy == that.createdBy && durationInSec == that.durationInSec && Objects.equals(createTimestamp, that.createTimestamp) && Objects.equals(mobile, that.mobile) && Objects.equals(callTime, that.callTime) && Objects.equals(mediaUrl, that.mediaUrl);
124
        return activityId == that.activityId && createdBy == that.createdBy && durationInSec == that.durationInSec && Objects.equals(createTimestamp, that.createTimestamp) && Objects.equals(mobile, that.mobile) && Objects.equals(callTime, that.callTime) && Objects.equals(mediaUrl, that.mediaUrl);
117
    }
125
    }
118
 
126
 
119
    @Override
127
    @Override
120
    public String toString() {
128
    public String toString() {
121
        return "TicketActivityMedia{" +
129
        return "TicketActivityMedia{" +
122
                ", ticketId=" + ticketId +
130
                ", activityId=" + activityId +
123
                ", createdBy=" + createdBy +
131
                ", createdBy=" + createdBy +
124
                ", createTimestamp=" + createTimestamp +
132
                ", createTimestamp=" + createTimestamp +
125
                ", durationInSec=" + durationInSec +
133
                ", durationInSec=" + durationInSec +
126
                ", mobile='" + mobile + '\'' +
134
                ", mobile='" + mobile + '\'' +
127
                ", callTime='" + callTime + '\'' +
135
                ", callTime='" + callTime + '\'' +
Line 129... Line 137...
129
                '}';
137
                '}';
130
    }
138
    }
131
 
139
 
132
    @Override
140
    @Override
133
    public int hashCode() {
141
    public int hashCode() {
134
        return Objects.hash(id, ticketId, createdBy, createTimestamp, durationInSec, mobile, callTime, mediaUrl);
142
        return Objects.hash(id, activityId, createdBy, createTimestamp, durationInSec, mobile, callTime, mediaUrl);
135
    }
143
    }
136
 
144
 
137
 
145
 
138
}
146
}
139
147