Spring Tips: JPA

  Рет қаралды 20,762

SpringDeveloper

SpringDeveloper

Күн бұрын

speaker: Josh Long
/ starbuxman
Hi Spring fans! In this installment we look at the Java Persistence API and its most ubiquitous implementation Hibernate. We look at basic Spring support for JPA, Spring Boot's auto-configuration and supported configuration properties, mapped superclasses, auditing (using Spring Data's JPA auditing facility) and journaling (using the Hibernate Envers project and Spring Data Envers).

Пікірлер: 24
@josephfouad3561
@josephfouad3561 6 жыл бұрын
Thanks for the tip, please note that the sound quality is really bad, the amount of noise is not acceptable at all :(
@silentsudo
@silentsudo 2 жыл бұрын
that is not noticable to devs :D
@gillianbc
@gillianbc 2 жыл бұрын
@@silentsudo I noticed it, I'm a dev
@joachimdietl6737
@joachimdietl6737 6 жыл бұрын
Great demo, but do not mess with the microphone josh ;)
@user-ql5mw8pv7d
@user-ql5mw8pv7d 2 жыл бұрын
Lombok @Data with entity classes will cause some interesting issues. First of all it violates JPA serialization rules (espesialy if you are using relations maped as Set), and also it may cause infinite recursion for toString() method of entity class...
@zakb.7108
@zakb.7108 2 жыл бұрын
Indeed if you use a Set uniqueness has to be explicitly set with and EqualsAndHashcode
@user-gz2uy7oi6c
@user-gz2uy7oi6c 2 жыл бұрын
@ToString.Exclude @EqualsAndHashCode.Exclude may help you
@user-ql5mw8pv7d
@user-ql5mw8pv7d 2 жыл бұрын
@@user-gz2uy7oi6c Does junior developer knows about this issues, and how to avoid them? We are talking about educational content. And I suppose you have to avoid using @Data with entity classes, if we are talking about best practices...
@blasttrash
@blasttrash 2 жыл бұрын
@@user-ql5mw8pv7d does junior dev konw how to use Spring? Might as well build APIs from scratch. If junior dev in your team is making these mistakes, explain to them how things work. But that shouldn't be the reason not to use a library. But it makes sense about JPA violation of serialization rules that you mentioned(although I have no idea what you meant, I will take your word for it).
@akamuza
@akamuza 6 жыл бұрын
Awsome demo. Thanks a lot.
@mahmudulislam5303
@mahmudulislam5303 2 жыл бұрын
really nice video
@farfazzi
@farfazzi 2 жыл бұрын
at 33.00 why would i need to define the native query at the entity level instead of doing so in the repository?
@dominikseljan3043
@dominikseljan3043 6 жыл бұрын
Good video! One small question: Where should we store data source info like username and password if not in the properties file?
@TheDrezir
@TheDrezir 2 жыл бұрын
In runtime, I suppose using something like console args or environment properties of target system. But we store it in application.yaml anyway but encrypted using jasypt and we store decrypt key in our runtime env.
@AdamGiri514
@AdamGiri514 2 жыл бұрын
How to implement expect-ct header in spring with report-uri Please make on video
@randyschreck5871
@randyschreck5871 4 жыл бұрын
Can't even watch this. The audio is terrible. Between the scratchy noises and the click-clack of mouse and keyboard... It's impossible to concentrate.
@BIELSIMON
@BIELSIMON 2 жыл бұрын
Learn to enjoy the ASMR man
@vernetto
@vernetto 6 жыл бұрын
thanks for the examples, but I get lost in words, for me it's a lot easier to read at least a summary of points... so it would be precious to have in attachment a small document explaining the main points, and links to the javadocs of all the Spring components used.... and having a github repository to clone with the complete example...
@joachimdietl6737
@joachimdietl6737 6 жыл бұрын
Did you have a look at the tutorials at spring.io already?
@ouya6967
@ouya6967 2 жыл бұрын
Why 9 hours ago video? Comment is 3 years ago
@NomanAliAbbasi
@NomanAliAbbasi 2 жыл бұрын
Because its old video
@virtualfi
@virtualfi 2 жыл бұрын
@@NomanAliAbbasi your answer adds even more confusion to it :) anyway what is going on with those "re-uploads"?
@scarpace12
@scarpace12 2 жыл бұрын
Please keep making videos, invest in new mic
@bahadiryagan
@bahadiryagan 6 жыл бұрын
please switch back to a mac :)
Spring Tips: Apache Camel
1:05:53
SpringDeveloper
Рет қаралды 12 М.
Spring Tips: the Spring Boot Build Plugin
33:53
SpringDeveloper
Рет қаралды 12 М.
THE POLICE TAKES ME! feat @PANDAGIRLOFFICIAL #shorts
00:31
PANDA BOI
Рет қаралды 25 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 72 МЛН
Spring Data JDBC: Beyond the Obvious
52:40
SpringDeveloper
Рет қаралды 16 М.
Spring Tips: Proxies
27:18
SpringDeveloper
Рет қаралды 2,3 М.
A Spring Data’s Guide to Persistence
53:55
SpringDeveloper
Рет қаралды 13 М.
Spring Tips: Bootiful Edge Services
30:05
SpringDeveloper
Рет қаралды 13 М.
Building Fast and Scalable Persistence Layers with Spring Data JPA
54:51
Spring Tips: @Controllers: give HTTP a REST
19:40
SpringDeveloper
Рет қаралды 19 М.
Spring Tips: JDBC
1:20:39
SpringDeveloper
Рет қаралды 11 М.
Test-Driven Security
22:26
SpringDeveloper
Рет қаралды 13 М.
⚡️Супер БЫСТРАЯ Зарядка | Проверка
1:00
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 32 МЛН
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 2 МЛН
Отдых для геймера? 😮‍💨 Hiper Engine B50
1:00