Spring Data JPA Projections: Best Practices and Examples

preview_player
Показать описание


00:00 Intro
00:20 Projections Basics
02:06 Project overview
05:07 Interface based Projection
09:23 Testing Interface based Projection
10:05 When to use Interface based Projection
10:33 DTO based Projection
12:59 Testing DTO based Projection
13:20 @Query with DTO based Projection
15:51 Comparing both Projections
------------------------------------------------------------------------------------
#SpringBoot #Transactional #SpringFramework #Java #CodingTutorial #SoftwareDevelopment #ProgrammingTips #java #javaprogramming #hibernate
Рекомендации по теме
Комментарии
Автор

Also, why does interface projection won't work for custom/native quries. Spring would not do mapping in case of native query and interface ?

universal
Автор

Can't we make use of object mapper and map entities to dto ?

universal