Spring Data JDBC: Beyond the Obvious

preview_player
Показать описание
Spring Data JDBC is an ORM inspired by Domain Driven Design. It purposely limits the ways you can model your domain objects. This makes Spring Data JDBC simple to maintain and to use.

Sometimes, though, you want to achieve things that aren’t obvious how to do. This talk shows how to solve common challenges:

- Bidirectional relationships
- ID generation
- Contextual query strategies
- Fine-tuning of mappings

Whether you are new to Spring Data JDBC or have substantial experience with it, this talk can give you a better understanding.

Jens Schauder, Staff Engineer at VMware

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

Thank you Jens for all the effort behind leading and spreading the word of the SpringDataJDBC. It definitely helped me understand and set the boundaries of my system and get started practically with the DDD for my use case. Only things that worries me is the performance impact caused by the update of the aggregate that has a list, and the delete insert that goes with it. My use case is that the 'parent' has the list of 'children', and I am updating the list of 'children' in every interaction with the user by adding new entry to the list and persisting (usually there are 5-10 actions during one user interaction cycle). Maybe I could have modeled the system differently still, will see. Cheers, Ivan

ivansimic
Автор

Is there any validation performed on the database schema like is done by Hibernate on startup with spring data jpa?

MORETHANOVERGROWN
Автор

Nice presentation. Next time please ignore the Slack messages during the presentation.

mdebruijn
Автор

Guys don't underestimate spring jdbc. It's not obsolete. It makes your life less miserable when you have real production RDBMS in place. What I mean is just make a call to complex sql queries and get the data. Fuck spring data jpa. Spring data jpa will be useful only when giving demos not with real world RDBMS's.

praveens
Автор

Hi jen, when to for data jdbc over plain jdbc, what are the main advantages?

manideepkumar
Автор

Great talk, wish you could have explained more on why we should we use spring data jdbc instead of spring data jpa.

tejap
Автор

Can any one help me how to achieve advance search using spring data jdbc in JPA we can use criteria api and specification but in Spring data JDBC we cannot use them so how to do or create advance search

rishabhkandari
Автор

One of the reasons I don't go this way is because there is no way to write a composite key with Spring Data JDBC. I would have to write the queries myself which removes the default repo functionality that is included.

Daniel-wtbh
Автор

how is this simpler? why use a reference (another thing to learn) when you can use a string parent id?

calofiremil
Автор

We have a large database with complex relationships between multiple tables. My fucking manager asked me to use spring data jpa instead of spring jdbc. I sent my resignation.

praveens
Автор

spring data jdbc > spring data jpa

dimitrijeglisic
visit shbcf.ru