Spring Data JPA: Query Projections

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • The Projection is one of the first things you’re probably thinking about when implementing a query with Spring Data JPA. This is because projection defines the entity attributes and the database columns returned by your query. So, selecting the right columns is important for your business logic. At the same time, projection is also crucial for the performance of your application and the maintainability of your code. In addition, you need to choose a projection that keeps the overhead as low as possible and provides the data in an easy to use structure.
    In this video, I will show you all the query projections supported by Spring Data JPA and which one you should use.
    Links mentioned:
    Entities or DTOs - When should you use which projection? : thorben-jansse...
    Like my channel? Subscribe!
    ➜ bit.ly/2cUsid8
    Join the free Member Library:
    goo.gl/dtyIIC
    Read the accompanying post: thorben-jansse...
    Want to connect with me?
    Blog: thorben-jansse...
    Twitter: / thjanssen123
    Facebook: / thoughtsonjava
    #Spring #JPA #Query #Projections

Комментарии • 17