Skip to content

Commit

Permalink
Merge pull request #29 from CSID-DGU/feature/#25/base-entity
Browse files Browse the repository at this point in the history
[chore] : JPA Config 추가
  • Loading branch information
bbbang105 authored May 26, 2024
2 parents ba001d5 + 9f3f09d commit c3602a8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backend/src/main/java/org/dgu/backend/config/JpaConfig.java
Original file line number Diff line number Diff line change
@@ -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 {
}
3 changes: 3 additions & 0 deletions backend/src/main/java/org/dgu/backend/dto/PortfolioDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.UUID;

public class PortfolioDto {
@Builder
@Getter
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public List<PortfolioDto.PortfolioInfos> 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()))
Expand Down

0 comments on commit c3602a8

Please sign in to comment.