1 package org.openkilda.log.dao.entity;
3 import java.io.Serializable;
6 import javax.persistence.Column;
7 import javax.persistence.Entity;
8 import javax.persistence.GeneratedValue;
9 import javax.persistence.GenerationType;
10 import javax.persistence.Id;
11 import javax.persistence.JoinColumn;
12 import javax.persistence.ManyToOne;
13 import javax.persistence.Table;
14 import javax.persistence.Temporal;
15 import javax.persistence.TemporalType;
18 @Table(
name =
"user_activity")
21 private static final long serialVersionUID = 1L;
24 @Column(
name =
"user_activity_id", nullable =
false)
25 @GeneratedValue(strategy = GenerationType.IDENTITY)
28 @Column(
name =
"version_number", nullable =
false)
32 @JoinColumn(
name =
"actvity_id", nullable =
false)
35 @Column(
name =
"object_id", nullable =
true)
36 private String objectId;
38 @Column(
name =
"client_ip", nullable =
true)
39 private String clientIp;
41 @Column(
name =
"activity_time")
42 @Temporal(TemporalType.TIMESTAMP)
43 private Date activityTime;
49 public void setId(
final Long
id) {
66 this.activity = activity;
74 this.objectId = objectId;
82 this.activityTime = activityTime;
90 this.clientIp = clientIp;
void setUserId(final Long userId)
void setId(final Long id)
void setObjectId(final String objectId)
void setActivity(final ActivityTypeEntity activity)
ActivityTypeEntity getActivity()
void setClientIp(final String clientIp)
void setActivityTime(final Date activityTime)