DomainMember Timestamp to Date

This commit is contained in:
insanity 2018-06-12 15:06:06 +09:00
parent 063e04675d
commit b7c17edafa

View File

@ -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;
}