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;