overflow_member model java

This commit is contained in:
insanity 2017-05-25 14:40:12 +09:00
parent 13a059f6ee
commit 75b5081940
2 changed files with 11 additions and 0 deletions

View File

@ -13,18 +13,25 @@ public class Member implements Serializable {
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy= GenerationType.IDENTITY)
private Long id; private Long id;
@Column(name="EMAIL", nullable=false) @Column(name="EMAIL", nullable=false)
private String email; private String email;
@Column(name="PW_SALT", nullable=false) @Column(name="PW_SALT", nullable=false)
private String pwSalt; private String pwSalt;
@Column(name="DIGEST", nullable=false) @Column(name="DIGEST", nullable=false)
private String digest; private String digest;
@Column(name="NAME", nullable=false) @Column(name="NAME", nullable=false)
private String name; private String name;
@Column(name="COMPANY", nullable=false) @Column(name="COMPANY", nullable=false)
private String company; private String company;
@Column(name="PHONE") @Column(name="PHONE")
private String phone; private String phone;
@Column(name="REGIST_DATE", nullable=false) @Column(name="REGIST_DATE", nullable=false)
private long registDate; private long registDate;
@ -35,6 +42,7 @@ public class Member implements Serializable {
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public String getEmail() { public String getEmail() {
return email; return email;
} }

View File

@ -1,8 +1,11 @@
package com.loafle; package com.loafle;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
@Ignore
public class AppTest { public class AppTest {
@Test @Test
public void testSum() { public void testSum() {