[QUESTION] Why doesn't @Transactional work when called within the same class?

preview_player
Показать описание
In this video, I answer the question: Why doesn't @Transactional work when called within the same class?

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

Thank you for such a nice explanation! Your channel is brilliant!

OCMDfan
Автор

Its was the most complex concept in spring thanks for such a clear explanation 🙌

rajasaroj
Автор

This is very refreshing. Thank you so much for this. This has brought a lot of clarity to an issue I was experiencing. Thank you Laur.

jeremiahayeni
Автор

Now, it’s clear!
Thanks for this video!

ursugheorghe
Автор

Man, you talk so passionate about it :D I love it!

beznerwow
Автор

Thank you for explaining this interesting scenario !

valentinmanea
Автор

Hi, thank you for the clear explain, but wondering if @Autowired private A a; would cause the Circular Dependency issue?

danielma
Автор

Woww, like watching a suspense movie! And clear explanation.. :). Can you please share isolation video link?

_abhishekmj_
Автор

Thanks a lot for explaining it beautifully

niteshnandan
Автор

Thanks for the explanation, now wondering what would happen if we replaced springs @Transactional with javax @Transactional.

KarthikRamurg
Автор

Poate ar fi ajutat sa spui si de varianta in care faci self injection si apelezi.

alexandruaga
Автор

var a = context.getBean(A.class); This will not create the proxy???

equalsTo
Автор

I have a better question, why there's a white ide?

crenshaw
Автор

if my service method is calling different repository multiple times within the method if it is annotated with @Transactional even though i want to run my whole method within the database transaction like in a single transaction
Reason being that am doing database queries for pre-conditions here that may no longer be true by the time you hit my controller without a transaction.

sadiqshaik