From 75b5081940e40391af6690752d558b19972b0300 Mon Sep 17 00:00:00 2001 From: insanity Date: Thu, 25 May 2017 14:40:12 +0900 Subject: [PATCH] overflow_member model java --- .../java/com/loafle/overflow/member/model/Member.java | 8 ++++++++ src/test/java/com/loafle/AppTest.java | 3 +++ 2 files changed, 11 insertions(+) diff --git a/src/main/java/com/loafle/overflow/member/model/Member.java b/src/main/java/com/loafle/overflow/member/model/Member.java index cdd3ee9..504ee8b 100644 --- a/src/main/java/com/loafle/overflow/member/model/Member.java +++ b/src/main/java/com/loafle/overflow/member/model/Member.java @@ -13,18 +13,25 @@ public class Member implements Serializable { @Id @GeneratedValue(strategy= GenerationType.IDENTITY) private Long id; + @Column(name="EMAIL", nullable=false) private String email; + @Column(name="PW_SALT", nullable=false) private String pwSalt; + @Column(name="DIGEST", nullable=false) private String digest; + @Column(name="NAME", nullable=false) private String name; + @Column(name="COMPANY", nullable=false) private String company; + @Column(name="PHONE") private String phone; + @Column(name="REGIST_DATE", nullable=false) private long registDate; @@ -35,6 +42,7 @@ public class Member implements Serializable { public void setId(Long id) { this.id = id; } + public String getEmail() { return email; } diff --git a/src/test/java/com/loafle/AppTest.java b/src/test/java/com/loafle/AppTest.java index cbadf31..15c2fbc 100644 --- a/src/test/java/com/loafle/AppTest.java +++ b/src/test/java/com/loafle/AppTest.java @@ -1,8 +1,11 @@ package com.loafle; import static org.junit.Assert.*; + +import org.junit.Ignore; import org.junit.Test; +@Ignore public class AppTest { @Test public void testSum() {