강의

멘토링

커뮤니티

Inflearn Community Q&A

yanggray's profile image
yanggray

asked

Real-world! Spring Boot and JPA Utilization 1 - Web Application Development

DAO와 REPOSITORY의 차이점...

Resolved

Written on

·

3.7K

2

안녕하세요

항상 좋은 강의 제공해주셔서 감사드립니다.

강의를 듣다보니 dao와 repository의 차이점이 궁금해서 질문을 남깁니다.

검색해보니 dao는 data persistence의 추상화 , repository는 collection of objects의 추상화라고 하는데,

사실상 둘의 기능은 비슷하다고 생각합니다. 하지만 둘의 차이를 명확하게 알고 싶어 질문드립니다.

혹시 mybatis를 사용할때 sql과 매핑할때 dao를 사용하고, repository는 엔티티를 영속성 컨텍스트에 영속화 시킬때  사용하는건가요???

 

daorepositoryJPAjava웹앱spring-bootspring

Answer 1

0

안녕하세요. 양태영님, 공식 서포터즈 OMG입니다.

Dao와 Repository의 차이 관련하여 영한님의 설명 링크 첨부합니다.

 

참고

https://www.inflearn.com/questions/111159
감사합니다.

yanggray님의 프로필 이미지
yanggray
Questioner

감사합니다. 오늘도 배워가네요 :D

yanggray's profile image
yanggray

asked

Ask a question