Bikasit Kumar Babu

Greenhorn
+ Follow
since Jan 23, 2020
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bikasit Kumar Babu

I am posting this as because i am stuck at some point .

Let me tell you the before hand behavior of transaction that i used and after behavior of the code

Before behaviorr
I have used spring transaction annotation (@Transactional(propagation = Propagation.REQUIRED) )  
after that i have  update the  details using


then i try to fetch the details of the domain object which i update (its again a hibernateTemplate find method )
and i am able to fetch the updated details as all are in Transactional boundary.
No problem with anything

certainly i get different result when i fetch the details before update and rest of the code execute as usual (see below)
after behavior


after that i wont get the updated details which i update all are in one transaction boundary


how the step 1 which is get the domain object create a difference in result . and what is the concept behind in the transaction . Can anybody help in this regards


Thanks in advance

4 years ago