JPA / Hibernate Marathon

  Рет қаралды 2,719

Laur Spilca

Laur Spilca

Күн бұрын

Пікірлер: 19
@jarekjal
@jarekjal 10 ай бұрын
regarding the problem with title being null after merge (at 1:51:00). according to hibernate documentation: "Merging is the process of taking an incoming entity instance that is in the detached state and copying its data over onto a new managed instance." - so it is new instance created, so you should to assign the value returned by em.merge(b1) back to b1. other way you continue working on old unmanaged instance and you have still null in title field ;)
@laurspilca
@laurspilca 10 ай бұрын
Yes!!!! You are totally right! I did forget that! Man, it's the age!
@temptrue3322
@temptrue3322 8 ай бұрын
Thank you Laur, good intro to hibernate
@laurspilca
@laurspilca 8 ай бұрын
Welcome :)
@OsteenOmega
@OsteenOmega 9 ай бұрын
hello. is it necessary to use the cascade feature of jpa if already defined in your sql schema? example, we usually use the ON UPDATE, and ON DELETE , during schema definition
@laurspilca
@laurspilca 9 ай бұрын
Hi. Yes. It make sense for the code to reflect the DB definitions. At least I would do that for clarity.
@OsteenOmega
@OsteenOmega 9 ай бұрын
Do you its a good practise using stored procedures today? or should all the logic be placed the application level?
@maksadnahibhoolna-wc2ef
@maksadnahibhoolna-wc2ef 6 ай бұрын
Are there more episodes into this series ?
@laurspilca
@laurspilca 6 ай бұрын
This was a marathon. But you can find a whole playlist on JPA here on this channel :)
@maksadnahibhoolna-wc2ef
@maksadnahibhoolna-wc2ef 6 ай бұрын
@@laurspilca sure Laur
@gheorghitabutnaru4455
@gheorghitabutnaru4455 10 ай бұрын
Hello! I observed that we can not use LIMIT constraint in a JPQL query. Is there an alternative?
@gheorghitabutnaru4455
@gheorghitabutnaru4455 10 ай бұрын
But without using native queries?
@laurspilca
@laurspilca 10 ай бұрын
@@gheorghitabutnaru4455 Hello. Yes. Limit is not an option in JPQL. You can use the setMaxResults() method on the Query object for this :)
@mils3318
@mils3318 11 ай бұрын
Thanks Laur
@FatimaBoulila-b1e
@FatimaBoulila-b1e 11 ай бұрын
Merci
@jarekjal
@jarekjal 10 ай бұрын
you couldn't prove getReference() method behaviour probably because your Intellij settings, try to uncheck Settings -> Build -> Debugger -> DataViews -> Java -> Enable toString() object veiw option (at least in my Community version it solved the issue, and is helpful with debugging Hibernate lazy loading also)
@laurspilca
@laurspilca 10 ай бұрын
Yes. I thought it's Intellij!
@MonsterBebesi-cd7ot
@MonsterBebesi-cd7ot 11 ай бұрын
githupp ??
@laurspilca
@laurspilca 11 ай бұрын
github.com/lspil/youtubechannel/tree/master/jpa_marathon_e1
JPA/Hibernate Fundamentals 2023 - Lesson 16 - Spring Data JPA
45:16
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
On CQRS, Vaadin and JOOQ with Simon Martinelli
45:11
Laur Spilca
Рет қаралды 750
OAuth 2/OpenID Connect with Spring Security Marathon
3:55:15
Laur Spilca
Рет қаралды 14 М.
The Secret Skill That Most Developers Miss
9:31
Learn Valkey with Mateush
Рет қаралды 1 М.
JPA/Hibernate Fundamentals 2023 - Lesson 15 - Entity Graphs
47:55
Laur Spilca
Рет қаралды 3,4 М.
Life-work balance as a software developer
59:15
Laur Spilca
Рет қаралды 1 М.
Choosing the right persistence solution for your Java app
48:00
Laur Spilca
Рет қаралды 1,2 М.
Ask me Anything - I'm an entry level and want to get a Java job
1:09:41