This commit is contained in:
snoop 2017-06-22 21:18:35 +09:00
parent 0a4c589d7d
commit 512f28d9ed
2 changed files with 3 additions and 3 deletions

View File

@ -12,6 +12,6 @@ import java.util.List;
* Created by root on 17. 6. 5. * Created by root on 17. 6. 5.
*/ */
public interface TargetDAO extends JpaRepository<Target, Long> { public interface TargetDAO extends JpaRepository<Target, Long> {
@Query("SELECT m FROM TARGET m WHERE m.probeId = :probeId") // @Query("SELECT m FROM TARGET m WHERE m.probeId = :probeId")
List<Target> findAllByProbe(Probe probe); // List<Target> findAllByProbe(Probe probe);
} }

View File

@ -28,7 +28,7 @@ public class Target {
this.id = id; this.id = id;
} }
@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 Timestamp getCreateDate() {
return createDate; return createDate;