인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

jjin's profile image
jjin

asked

Real-world! Spring Boot and JPA Utilization 2 - API Development and Performance Optimization

Member Modification API

DTO

Written on

·

186

0

안녕하세요. DTO와 엔티티의 차이가 무엇인가요??

여기서는 createMemberRequest가 DTO가 되는 건가요???

javaspring-bootspringJPA

Answer 1

1

안녕하세요. sjjin님, 공식 서포터즈 OMG입니다.
엔티티 개념은 아래를 참고해주세요.

https://rh-cp.tistory.com/78

DTO는 데이터를 전송하는 목적으로 사용하는 객체로 createMemberRequest를 DTO로 보셔도 됩니다.


감사합니다.

jjin님의 프로필 이미지
jjin
Questioner

혹시 CreateMemberResponse도 DTO에 해당하나요??

 

Request/Response 상관없이 데이터를 전송하는 목적이라면 DTO로 보셔도 됩니다

jjin's profile image
jjin

asked

Ask a question