Skip to content
Snippets Groups Projects
Commit 5b0bb8f3 authored by ThanKarab's avatar ThanKarab
Browse files

Added miliseconds in ExperimentDAO toString.

parent f373cbf6
No related branches found
No related tags found
1 merge request!38Added miliseconds in ExperimentDAO toString.
......@@ -8,6 +8,7 @@ import lombok.AllArgsConstructor;
import lombok.Data;
import javax.persistence.*;
import java.text.SimpleDateFormat;
import java.util.*;
/**
......@@ -86,6 +87,27 @@ public class ExperimentDAO {
success
}
@Override
public String toString() {
String finishedDT = "";
if (this.finished != null)
finishedDT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(this.finished);
return "ExperimentDAO(uuid=" + this.uuid +
", name=" + this.name +
", createdBy=" + this.createdBy +
", workflowHistoryId=" + this.workflowHistoryId +
", status=" + this.status +
", result=" + this.result +
", finished=" + finishedDT +
", algorithm=" + this.algorithm +
", algorithmId=" + this.algorithmId +
", created=" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(this.created) +
", updated=" + this.updated +
", shared=" + this.shared +
", viewed=" + this.viewed + ")";
}
public ExperimentDAO() {
/*
* Empty constructor is needed by Hibernate
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment