feat/training_260202 #12

Merged
teddy merged 2 commits from feat/training_260202 into develop 2026-02-04 12:32:37 +09:00
2 changed files with 4 additions and 8 deletions

View File

@@ -156,13 +156,9 @@ public class DatasetDto {
@Schema(description = "제목", example = "1차 제작") @Schema(description = "제목", example = "1차 제작")
private String title; private String title;
@NotBlank(message = "비교연도는 필수입니다") @Schema(description = "비교연도 (YYYY)", example = "2023")
@Size(max = 4, message = "비교연도는 4자리입니다")
@Schema(description = "비교연도 (YYYY)", example = "2024")
private Integer compareYear; private Integer compareYear;
@NotBlank(message = "기준연도는 필수입니다")
@Size(max = 4, message = "기준연도는 4자리입니다")
@Schema(description = "기준연도 (YYYY)", example = "2024") @Schema(description = "기준연도 (YYYY)", example = "2024")
private Integer targetYyyy; private Integer targetYyyy;

View File

@@ -79,7 +79,7 @@ public class DatasetEntity {
@NotNull @NotNull
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)
private Long id1; private Long LegacyId;
@Size(max = 50) @Size(max = 50)
@Column(name = "created_by", length = 50) @Column(name = "created_by", length = 50)
@@ -88,7 +88,7 @@ public class DatasetEntity {
@NotNull @NotNull
@ColumnDefault("now()") @ColumnDefault("now()")
@Column(name = "created_dttm", nullable = false) @Column(name = "created_dttm", nullable = false)
private ZonedDateTime createdDttm; private ZonedDateTime createdDttm = ZonedDateTime.now();
@NotNull @NotNull
@ColumnDefault("false") @ColumnDefault("false")
@@ -112,7 +112,7 @@ public class DatasetEntity {
@NotNull @NotNull
@ColumnDefault("uuid_generate_v4()") @ColumnDefault("uuid_generate_v4()")
@Column(name = "uuid", nullable = false) @Column(name = "uuid", nullable = false)
private UUID uuid; private UUID uuid = UUID.randomUUID();
@ColumnDefault("0") @ColumnDefault("0")
@Column(name = "total_object_count") @Column(name = "total_object_count")