diff --git a/backend/src/main/java/org/dgu/backend/config/JpaConfig.java b/backend/src/main/java/org/dgu/backend/config/JpaConfig.java new file mode 100644 index 0000000..e1250e4 --- /dev/null +++ b/backend/src/main/java/org/dgu/backend/config/JpaConfig.java @@ -0,0 +1,9 @@ +package org.dgu.backend.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.data.jpa.repository.config.EnableJpaAuditing; + +@Configuration +@EnableJpaAuditing +public class JpaConfig { +} \ No newline at end of file diff --git a/backend/src/main/java/org/dgu/backend/dto/PortfolioDto.java b/backend/src/main/java/org/dgu/backend/dto/PortfolioDto.java index dfaa9d0..9a67c16 100644 --- a/backend/src/main/java/org/dgu/backend/dto/PortfolioDto.java +++ b/backend/src/main/java/org/dgu/backend/dto/PortfolioDto.java @@ -8,6 +8,8 @@ import lombok.Getter; import lombok.NoArgsConstructor; +import java.util.UUID; + public class PortfolioDto { @Builder @Getter @@ -16,6 +18,7 @@ public class PortfolioDto { @JsonNaming(value = PropertyNamingStrategies.SnakeCaseStrategy.class) @JsonInclude(JsonInclude.Include.NON_NULL) public static class PortfolioInfos { + private UUID portfolioId; private String title; private String startDate; private String endDate; diff --git a/backend/src/main/java/org/dgu/backend/service/PortfolioServiceImpl.java b/backend/src/main/java/org/dgu/backend/service/PortfolioServiceImpl.java index 3cb60d1..545b7e6 100644 --- a/backend/src/main/java/org/dgu/backend/service/PortfolioServiceImpl.java +++ b/backend/src/main/java/org/dgu/backend/service/PortfolioServiceImpl.java @@ -44,6 +44,7 @@ public List getPortfolios(String authorizationHeade PortfolioOption portfolioOption = portfolioOptionRepository.findByPortfolio(portfolio); portfolioInfoGroups.add(PortfolioDto.PortfolioInfos.builder() + .portfolioId(portfolio.getPortfolioId()) .title(portfolio.getTitle()) .startDate(String.valueOf(portfolioOption.getStartDate())) .endDate(String.valueOf(portfolioOption.getEndDate()))