Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
portal-backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
portal-backend
Commits
5b0bb8f3
Commit
5b0bb8f3
authored
2 years ago
by
ThanKarab
Browse files
Options
Downloads
Patches
Plain Diff
Added miliseconds in ExperimentDAO toString.
parent
f373cbf6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!38
Added miliseconds in ExperimentDAO toString.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/eu/hbp/mip/models/DAOs/ExperimentDAO.java
+22
-0
22 additions, 0 deletions
src/main/java/eu/hbp/mip/models/DAOs/ExperimentDAO.java
with
22 additions
and
0 deletions
src/main/java/eu/hbp/mip/models/DAOs/ExperimentDAO.java
+
22
−
0
View file @
5b0bb8f3
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment