Open Session In View Pattern

前端 未结 6 1132
既然无缘
既然无缘 2020-11-27 17:25

I\'m asking this question given my chosen development frameworks of JPA (Hibernate implementation of), Spring, and

6条回答
  •  孤街浪徒
    2020-11-27 18:26

    There are some benefits of DTO approach though. You have to think beforehand what information you need. In some cases this will prevent you from generating n+1 select statements. It helps also to see where to use eager fetching and/or optimized views.

提交回复
热议问题