Skip to content

Commit

Permalink
Merge pull request #405 from olofsvensson/issue_404
Browse files Browse the repository at this point in the history
Issue #404, ISPyB-91 : Added phasingDirectory to PhasingProgramRun
  • Loading branch information
olofsvensson authored Dec 18, 2018
2 parents 0238db2 + 2d3d3b2 commit ed00319
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ public class PhasingProgramRun3VO extends ISPyBValueObject implements Cloneable
@Column(name = "phasingEnvironment")
protected String phasingEnvironment;

@Column(name = "phasingDirectory")
protected String phasingDirectory;

@Column(name = "recordTimeStamp")
protected Date recordTimeStamp;

Expand Down Expand Up @@ -177,6 +180,14 @@ public void setPhasingEnvironment(String phasingEnvironment) {
this.phasingEnvironment = phasingEnvironment;
}

public String getPhasingDirectory() {
return phasingEnvironment;
}

public void setPhasingDirectory(String phasingDirectory) {
this.phasingDirectory = phasingDirectory;
}

public Date getRecordTimeStamp() {
return recordTimeStamp;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,7 @@ public Integer storeOrUpdatePhasingProgramRun(PhasingProgramRun3VO vo) throws Ex
phasingProgramRun.setPhasingStartTime(vo.getPhasingStartTime());
phasingProgramRun.setPhasingEndTime(vo.getPhasingEndTime());
phasingProgramRun.setPhasingEnvironment(vo.getPhasingEnvironment());
phasingProgramRun.setPhasingDirectory(vo.getPhasingDirectory());
phasingProgramRun.setRecordTimeStamp(StringUtils.getCurrentTimeStamp());
if (phasingProgramRunId == null || phasingProgramRunId == 0) {
phasingProgramRun.setPhasingProgramRunId(null);
Expand Down

0 comments on commit ed00319

Please sign in to comment.