diff --git a/src/main/java/com/loafle/overflow/model/domain/DomainMember.java b/src/main/java/com/loafle/overflow/model/domain/DomainMember.java index 7f878c1..fd06ad6 100644 --- a/src/main/java/com/loafle/overflow/model/domain/DomainMember.java +++ b/src/main/java/com/loafle/overflow/model/domain/DomainMember.java @@ -2,8 +2,9 @@ package com.loafle.overflow.model.domain; import com.loafle.overflow.model.member.Member; +import java.util.Date; + import javax.persistence.*; -import java.sql.Timestamp; /** * Created by root on 17. 6. 22. @@ -12,7 +13,7 @@ import java.sql.Timestamp; @Table(name = "DOMAIN_MEMBER", schema = "public") public class DomainMember { private Long id; - private Timestamp createDate; + private Date createDate; private Member member; private Domain domain; @@ -28,11 +29,11 @@ public class DomainMember { @Basic @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) - public Timestamp getCreateDate() { + public Date getCreateDate() { return createDate; } - public void setCreateDate(Timestamp createDate) { + public void setCreateDate(Date createDate) { this.createDate = createDate; }