테스트 실행 추가

This commit is contained in:
2026-02-11 21:58:25 +09:00
parent 1249a80da5
commit 2f8bd1f98c
14 changed files with 670 additions and 98 deletions

View File

@@ -1,5 +1,6 @@
package com.kamco.cd.training.postgres.entity;
import com.kamco.cd.training.train.dto.ModelTrainJobDto;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
@@ -76,4 +77,19 @@ public class ModelTrainJobEntity {
@Size(max = 100)
@Column(name = "locked_by", length = 100)
private String lockedBy;
public ModelTrainJobDto toDto() {
return new ModelTrainJobDto(
this.id,
this.modelId,
this.attemptNo,
this.statusCd,
this.exitCode,
this.errorMessage,
this.containerName,
this.paramsJson,
this.queuedDttm,
this.startedDttm,
this.finishedDttm);
}
}