From 512f28d9ed565db5df8c8de8199e1e3097abc0c7 Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 22 Jun 2017 21:18:35 +0900 Subject: [PATCH] fixed --- .../java/com/loafle/overflow/module/target/dao/TargetDAO.java | 4 ++-- .../java/com/loafle/overflow/module/target/model/Target.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/loafle/overflow/module/target/dao/TargetDAO.java b/src/main/java/com/loafle/overflow/module/target/dao/TargetDAO.java index dbe364f..59264ee 100644 --- a/src/main/java/com/loafle/overflow/module/target/dao/TargetDAO.java +++ b/src/main/java/com/loafle/overflow/module/target/dao/TargetDAO.java @@ -12,6 +12,6 @@ import java.util.List; * Created by root on 17. 6. 5. */ public interface TargetDAO extends JpaRepository { - @Query("SELECT m FROM TARGET m WHERE m.probeId = :probeId") - List findAllByProbe(Probe probe); +// @Query("SELECT m FROM TARGET m WHERE m.probeId = :probeId") +// List findAllByProbe(Probe probe); } diff --git a/src/main/java/com/loafle/overflow/module/target/model/Target.java b/src/main/java/com/loafle/overflow/module/target/model/Target.java index 6582b76..7b07c1f 100644 --- a/src/main/java/com/loafle/overflow/module/target/model/Target.java +++ b/src/main/java/com/loafle/overflow/module/target/model/Target.java @@ -28,7 +28,7 @@ public class Target { this.id = id; } - @Basic + @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) public Timestamp getCreateDate() { return createDate;