transactional Questions
6
Simply stated: What is the difference between "Transactional" and "Non-Transactional"?
In my case I came up with this question while reading the following definition for "MDM":
"In computing, ...
Hegira asked 19/9, 2013 at 1:3
3
Solved
I am trying to use spring @Transactional annotation and timeout parameter. I basically test the code with put some Thread.sleep() codes. Then i get timeout exception as i expected. Also i want to g...
Corm asked 28/12, 2015 at 15:19
3
Solved
here I am trying to remove any users which containt a " in their email/username.
def removeQuote(self, tbl,record):
""" Updates the record """
statmt="select id from %s WHERE `email` LIKE '%%\"...
Stimulus asked 22/8, 2012 at 22:38
4
Solved
There are already a few questions about the topic, but no response at all really provides arguments in order to explain why we shouldn't make a Spring MVC controller Transactional. See:
Transacti...
Boon asked 16/4, 2014 at 19:46
4
Solved
Let's say I have a java class with a method like this (just an example)
@Transactional
public synchronized void onRequest(Request request) {
if (request.shouldAddBook()) {
if (database.getByNam...
Lamaism asked 20/1, 2017 at 16:9
3
Solved
One way to configure Spring to rollback on a non RuntimeExceptions is using @Transactional(rollbackFor=...) annotation on the service classes. The problem with this approach is that we need to defi...
Zelaya asked 4/7, 2017 at 6:54
3
Solved
I have a set of @Service beans which inherit core functionality from an abstract class. I marked each of the concrete sub-class services with @Service and @Transactional. The abstract super class c...
Elnaelnar asked 29/3, 2012 at 3:10
5
I have a drools rule file which uses service classes in the rules. So one rule does something like this:
eval(countryService.getCountryById(1) != null)
In a validationservice that is annotated wi...
Alpine asked 12/10, 2012 at 11:22
3
Solved
I'm trying to use @Transactional annotation in a method on my service to lazily load a field. However using @Transactional on my Implementation class makes all autowired fields null.
Here is my i...
Craft asked 3/7, 2017 at 9:18
6
Solved
I want to know what actually happens when you annotate a method with @Transactional?
Of course, I know that Spring will wrap that method in a Transaction.
But, I have the following doubts:
I hea...
Winthorpe asked 8/7, 2009 at 16:2
3
I was browsing the Win32 API functions for file and directory management operations. I saw that some of those functions has their so called "transactional" counterparts.
Examples:
CreateDirectory ...
Lyndonlyndsay asked 11/7, 2013 at 12:20
2
I am working on a spring-boot project.
Before using @Transactional annotation in my project I have two questions
Best practice to use @Transactional annotation in spring-boot, service layer or...
Rossuck asked 2/5, 2019 at 6:5
4
I've seen a method in a Service class that was marked as @Transactional, but it was also calling some other methods in that same class which were not marked as @Transactional.
Does it mean that th...
Acus asked 3/6, 2011 at 3:14
5
Solved
I have a method annotated with @Transactional. I retrieve an object from my Oracle DB, change a field, and then return from the method. I forgot to save the object, but discovered that the database...
Isolecithal asked 19/11, 2011 at 0:42
1
Solved
I am trying to make my Service Method retrying on failure with Springs @Retryable.
@Retryable(backoff = @Backoff(delay = 1000), maxAttempts = 3)
@Transactional(rollbackFor = Throwable.class)
publi...
Cule asked 6/2, 2019 at 17:18
1
I use Spring + Hibernate + JPA
I need to handle the list of customers by inserting their orders.
Here is the Unit of work :
for(Customer customer: CustomerList) {
List<Order> orderList = ...
Helpful asked 24/1, 2019 at 9:21
1
Solved
I need to receive and save huge amount of data using spring data over hibernate. Our server allocated not enough RAM for persisting all entities at the same time. We will definitely get OutOfMemory...
Gallego asked 11/1, 2019 at 12:57
2
Solved
I have the following code:
/**
* Restored deleted partner
*/
@Transactional
public void restorePartnerById(Integer id){
// logic
}
When I make the method final
/**
* Restored deleted partn...
Challis asked 9/10, 2018 at 7:4
1
Solved
I got interested in how Spring's @Transactional works internally, but everywhere I read about it there's a concept of proxy. Proxies are supposed to be autowired in place of real bean and "decorate...
Tjaden asked 1/9, 2018 at 18:20
2
I have a Spring application which updates particular entity details in MySQL DB using a @Transactional method, And within the same method, I am trying to call another endpoint using @Async which is...
Picoline asked 14/8, 2018 at 3:28
1
Solved
I have the following implementation.
@Transactional
public void saveAndGenerateResult(Data data) {
saveDataInTableA(data.someAmountForA);
saveDataInTableB(data.someAmountForB);
callAnAggregate...
Duplicature asked 16/4, 2018 at 10:32
2
Solved
I have to use 3 different transaction managers in my webapp. So I wrote my own Annotation according to the Spring reference (Section 10.5.6.3 Custom shortcut annotations).
One annotation (for usi...
Forestry asked 31/8, 2010 at 9:39
1
I am bit of unclear about the usage of @Transactional annotation in the business/service layer.
My question is, when used together with ISOLATION_SERIALIZABLE in business layer, does the @Transac...
Fisc asked 17/1, 2018 at 9:16
3
I know that my problem is a common problem, but I've checked a lot of questions here, checked Spring documentation and I really don't know what I am doing wrong.
My problem: I've got a Spring WebFl...
Refractor asked 10/3, 2011 at 20:53
7
Solved
I configured spring with transactional support. Is there any way to log transactions just to ensure I set up everything correctly? Showing in the log is a good way to see what is happening.
Valorievalorization asked 27/12, 2009 at 7:44
1 Next >
© 2022 - 2025 — McMap. All rights reserved.