Spring Data JPA – Working with Views

preview_player
Показать описание
Database administrators often use views to combine, transform and present data in a form that’s easy to process and query by the application. They are easier to maintain and optimize than a complex query statement that’s developed and maintained in one or more applications. Using Spring Data JPA, you can map and query views in almost the same way as database tables.

Links mentioned:

Derived Queries with Spring Data JPA – The Ultimate Guide:

Like my channel? Subscribe!

Join the free Member Library:

Want to connect with me?

#SpringDataJPA #DatabaseViews #Repository
Рекомендации по теме
Комментарии
Автор

You are a real teacher, who has in-depth knowledge of the subject! Wow, must confess I learnt a lot from your blog posts and videos. Thank you!

Randomisticful
Автор

Just in time! I'm starting a new project with oracle views and Spring data. Thanks, Thorben!

ferlezcano
Автор

But I have a doubt, the views doesnt has pk, why do you need to use @Id annotation?

josemanuelbru
Автор

How do you provide arbitrary aggregation where you must use native queries that you want to be parametrized dynamically all without introducing sql injection vulnerabilities without using any 3rd party framework.

rydmerlin
Автор

what if there are two rows in a view with same primary key ?

rony
Автор

findAll() method from spring repositories is one of the methods that should never appear in your repository. Why would you like to fetch all the data from table/view on one call?

MrAlien