|
@@ -0,0 +1,88 @@
|
|
|
+package com.icontrols.kakao.entity;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+
|
|
|
+import javax.persistence.Column;
|
|
|
+import javax.persistence.Entity;
|
|
|
+import javax.persistence.GeneratedValue;
|
|
|
+import javax.persistence.GenerationType;
|
|
|
+import javax.persistence.Id;
|
|
|
+import javax.persistence.Table;
|
|
|
+
|
|
|
+@Entity
|
|
|
+@Table(name = "tbl_access_log")
|
|
|
+public class AccessLog implements Serializable{
|
|
|
+ private static final long serialVersionUID = -2056140273228887516L;
|
|
|
+
|
|
|
+ @Id
|
|
|
+ @GeneratedValue(strategy = GenerationType.AUTO)
|
|
|
+ private long id;
|
|
|
+
|
|
|
+
|
|
|
+ @Column(name = "request_id")
|
|
|
+ private String requestId;
|
|
|
+
|
|
|
+ @Column(name = "authorization")
|
|
|
+ private String authorization;
|
|
|
+
|
|
|
+ @Column(name = "req_type")
|
|
|
+ private String reqType;
|
|
|
+
|
|
|
+ @Column(name = "body")
|
|
|
+ private String body;
|
|
|
+
|
|
|
+ public AccessLog(String requestId, String authorization, String reqType, String body) {
|
|
|
+ super();
|
|
|
+ this.requestId = requestId;
|
|
|
+ this.authorization = authorization;
|
|
|
+ this.reqType = reqType;
|
|
|
+ this.body = body;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(long id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getRequestId() {
|
|
|
+ return requestId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRequestId(String requestId) {
|
|
|
+ this.requestId = requestId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getAuthorization() {
|
|
|
+ return authorization;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAuthorization(String authorization) {
|
|
|
+ this.authorization = authorization;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getReqType() {
|
|
|
+ return reqType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setReqType(String reqType) {
|
|
|
+ this.reqType = reqType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getBody() {
|
|
|
+ return body;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBody(String body) {
|
|
|
+ this.body = body;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ return "AccessLog [id=" + id + ", requestId=" + requestId + ", authorization=" + authorization + ", reqType="
|
|
|
+ + reqType + ", body=" + body + "]";
|
|
|
+ }
|
|
|
+
|
|
|
+}
|