DomainMember Timestamp to Date
This commit is contained in:
parent
063e04675d
commit
b7c17edafa
|
@ -2,8 +2,9 @@ package com.loafle.overflow.model.domain;
|
||||||
|
|
||||||
import com.loafle.overflow.model.member.Member;
|
import com.loafle.overflow.model.member.Member;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
import java.sql.Timestamp;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by root on 17. 6. 22.
|
* Created by root on 17. 6. 22.
|
||||||
|
@ -12,7 +13,7 @@ import java.sql.Timestamp;
|
||||||
@Table(name = "DOMAIN_MEMBER", schema = "public")
|
@Table(name = "DOMAIN_MEMBER", schema = "public")
|
||||||
public class DomainMember {
|
public class DomainMember {
|
||||||
private Long id;
|
private Long id;
|
||||||
private Timestamp createDate;
|
private Date createDate;
|
||||||
private Member member;
|
private Member member;
|
||||||
private Domain domain;
|
private Domain domain;
|
||||||
|
|
||||||
|
@ -28,11 +29,11 @@ public class DomainMember {
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
|
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
|
||||||
public Timestamp getCreateDate() {
|
public Date getCreateDate() {
|
||||||
return createDate;
|
return createDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCreateDate(Timestamp createDate) {
|
public void setCreateDate(Date createDate) {
|
||||||
this.createDate = createDate;
|
this.createDate = createDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user