package com.libqa.domain;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.*;

/**
 * Created by yion on 2015. 1. 25..
 */
@Entity
@Data
@Slf4j
public class User {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @Column(name = "name", nullable = false)
    private String name;

    @Column(name = "age", nullable = false)
    private Integer age;


}

@@ -102,16 +102,39 @@
 tence.*;
+%0Aimport java.util.Date;
 %0A%0A/**%0A *
@@ -171,16 +171,22 @@
 5..%0A */%0A
+@Data%0A
 @Entity%0A
@@ -190,19 +190,28 @@
 ty%0A@
-Data%0A@Slf4j
+Table(name = %22user%22)
 %0Apub
@@ -231,16 +231,17 @@
 r %7B%0A
+%0A
     @Id%0A
     
@@ -236,16 +236,46 @@
     @Id%0A
+    @Column(nullable = false)%0A
     @Gen
@@ -334,156 +334,1307 @@
 ate 
-Long id;%0A%0A    @Column(name = %22name%22, nullable = false)%0A    private String name;%0A%0A    @Column(name = %22age%22, nullable = false)%0A    private Integer age
+Integer userId;%0A%0A    @Column(length = 80, nullable = false)%0A    private String userEmail;%0A%0A    @Column(length = 80, nullable = false)%0A    private String userNick;%0A%0A    @Column(length = 100, nullable = false)%0A    private String userSite;%0A%0A    @Column(length = 40, nullable = false)%0A    private String userImage;%0A%0A    @Column(length = 50)%0A    private String userImagePath;%0A%0A    @Column(columnDefinition = %22TINYINT(1) DEFAULT 0%22)%0A    private boolean isDeleted;  // (Y : %ED%83%88%ED%87%B4, N: %ED%99%9C%EC%84%B1)%0A%0A    @Column(length = 255, nullable = false)%0A    private String faceBookKey;%0A%0A    @Column(length = 255, nullable = false)%0A    private String googleKey;%0A%0A    @Column(length = 255, nullable = false)%0A    private String tweeterKey;%0A%0A    @Column(length = 255, nullable = false)%0A    private String userPass;%0A%0A    @Column(length = 4, nullable = false)%0A    private Integer visiteCount;%0A%0A    @Temporal(TemporalType.TIMESTAMP)%0A    private Date lastVisiteDate;%0A%0A    @Temporal(TemporalType.TIMESTAMP)%0A    private Date insertDate;%0A%0A    @Temporal(TemporalType.TIMESTAMP)%0A    private Date updateDate;%0A%0A    @Column(nullable = false)%0A    private Integer userPoint;%0A%0A    @Column(columnDefinition = %22TINYINT(1) DEFAULT 0%22)%0A    private boolean isCertification;%0A%0A    @Column(length = 255, nullable = false)%0A    private String certificationKey
 ;%0A%0A%0A

add user entity