강의

멘토링

커뮤니티

Inflearn Community Q&A

cheolhojung's profile image
cheolhojung

asked

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

엔티티를 다른 서비스로 바로 넘겨도 될까요?

Written on

·

131

·

Edited

0

a도메인 서비스에서 jpa로 가져온 엔티티를

b도메인 서비스로 넘겨도 될까요?

dto를 쓰지 않고 엔티티 타입을 그냥 바로 넘기려구요

 

이때 영속성 컨텍스트를 끊어주려고 OSIV off하고 데이터커넥션 끊기도록 설정할겁니다

이렇게만 하면 다른 서비스로 넘어가도 괜찮을까요?

javaspring웹앱spring-bootjpa

Answer 1

0

안녕하세요. Jung Cheol님, 공식 서포터즈 David입니다.

네, 그렇게 구현하셔도 무방합니다.

감사합니다.

cheolhojung's profile image
cheolhojung

asked

Ask a question