Skip to content

유저 프로필 정보를 가져오는 로직 수정 #16

@Sinawe4

Description

@Sinawe4
  • 현재 유저정보를 가져오는 메서드는 Dto형식에 맞춰 데이터를 가져오기 위해 QueryDls을 사용중이다.
  • Dto로 받아오는 기능 하나만을 위해 QueryDls을 사용하는 건 조금 낭비라고 생각된다.
  • Feature/user profile #12 에서 받은 조언들로 로직 리팩토링을 해보자

매핑 라이브러리. ModelMapper 를 사용하거나 MapStruct 를 사용해서 Dto 프로젝션을 할 수 있습니다 :)
라이브러리를 사용하지 않고, DataJPA 에서 기본적으로 지원하는 Dto 프로젝션도 사용해보면 좋아요.
https://www.baeldung.com/spring-data-jpa-projections
-Jyeonjyan

Metadata

Metadata

Assignees

No one assigned

    Labels

    to-do앞으로 해야할것

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions