Questions tagged [transactional]

A transaction is a collection of operations performed on a database that are supposed to execute in one unit.

A transaction is a collection of operations performed on a database that are supposed to execute in one unit. This means that in case any of the operations fails the entire transaction fails and the status of the database is rolled back to the status prior to the transaction.

Apparently this tag is only useful for databases that actually support transactions.

770 questions
0
votes
1 answer

What happens to methods that are not annotated as @Transactional with annotation-driven manager

Could anyone tell us what happens to the changes done to database tables in a method that is not annotated as @Transactional but the transaction manager is annotation-driven? We assume it's up to the auto commit true or false. If auto commit is…
user2616361
  • 11
  • 1
  • 2
0
votes
1 answer

Hibernate JPA and Spring javax.persistence.TransactionRequiredException: no transaction is in progress (2)

Again, the same problem, but the other answers given in the related posts don't help me. Maven-formatted source code is at: https://github.com/jjYBdx4IL/my.bugs.smtpserver git clone git@github.com:jjYBdx4IL/my.bugs.smtpserver.git Exception thrown…
user1050755
  • 11,218
  • 4
  • 45
  • 56
0
votes
2 answers

T-SQL - Data Islands and Gaps - How do I summarise transactional data by month?

I'm trying to query some transactional data to establish the CurrentProductionHours value for each Report at the end of each month. Providing there has been a transaction for each report in each month, that's pretty straight-forward... I can use…
triplestones
  • 393
  • 2
  • 13
0
votes
0 answers

Deltaspike 0.5 @Transactional issues: JTA transaction does not seem to work; Also getting NPE if there is no injected EntityManager

We are deploying app to WildFly 8.0.0.Final. The app used to run on Jboss EAP 6.0/AS7.1 fine with Seam3 managing JTA transaction. However, since Seam3 does not work with WildFly, we are replacing it with DeltaSpike. We deployed the core and jpa…
user3243153
  • 45
  • 2
  • 8
0
votes
1 answer

The Spring annotation @Transactional(Propagation.REQUIRED) over a method, how does it behave?

I have read the official documentation of Spring about the @Transactional(Propagation.REQUIRED) annotation but still have some doubts. I will show you an example about how I thinks it behaves: First Service public class MyServiceImpl implements…
fernando1979
  • 1,727
  • 2
  • 20
  • 26
0
votes
2 answers

Magento hide / remove prices from transactional emails

I am trying to hide / remove prices from within magento transactional emails. I have been able to hide the prices from the everywhere else in the cart via css but not the emails. I have tried commenting out the code that renders the price but…
MonkeyCMonkeyDo
  • 73
  • 2
  • 11
0
votes
1 answer

Transactional Email List in Magento Empty when add new template

I'm trying to add a new email template via adminhtml -> system -> transactional email -> new template, then default template not loading
0
votes
1 answer

transactional email not getting delivered to some email extensions

I am using magento 1.3.2.4 My problem with transactional email is that the email sent from magento does not get delivered to some extensions like email@somedomain.net or .gov or .edu It works for .com domains or gmail I have transactional email set…
Dmaze
  • 37
  • 2
  • 10
0
votes
2 answers

Spring transactional on a singleton class - issues

I have a Service(Hibernate DAOs) which retrieves data from the DB and returns it to the client. One of the developer has inserted the @Transactional on the class itself without any properties set. The bean declaration in the appliciation context of…
Zeus
  • 6,386
  • 6
  • 54
  • 89
0
votes
1 answer

Junit Transactional makes newly inserted rows invisible when read?

I run my test case with @Transactional annotation. In one of my test methods I do something in service layer and this results in storing a new row in the database. But when I want to use that row in same method (just to test the integrity of the…
user2902211
  • 185
  • 14
0
votes
1 answer

second tx in @Transactional REQUIRED breaks the first one?

I am not very clear about the behavior of @Transactional with propagation=REQUIRED. an example I see often referenced on the web is like this: public void callerMethod() { call1(); call2(); } @Transactional(propagation=REQUIRED) public…
teddy teddy
  • 3,025
  • 6
  • 31
  • 48
0
votes
1 answer

Transactional annotation different behavior

I just saw two different projects. In one of them whenever you tried to persist/save an entity from a method with no @Transactional annotation there was an exception that said: No session found On the other Even though no @Transactional annotation…
Urbanleg
  • 6,252
  • 16
  • 76
  • 139
0
votes
1 answer

Spring data-jpa Transactional does not work on service

Here is my service method: @Resource private PersonRepository personRepository; @Transactional @Override public Person create(PersonDTO created) { LOGGER.debug("Creating a new person with information: " + created); Person person =…
Urbanleg
  • 6,252
  • 16
  • 76
  • 139
0
votes
1 answer

@Transactional annotation java.lang.IllegalArgumentException: Transaction must be running

I am using JavaEE7 and container managed transactions in my Project. Although i have @Transactional annotation on method, i am getting "Transaction must be running" exception. Code seems as…
bilal
  • 103
  • 1
  • 1
  • 5
0
votes
1 answer

Clustering transactional data using PAM in R?

I need to group sets of transactions in different groups. My data in a text file as this format: T1 17 20 22 35 37 60 62 T2 39 51 53 54 57 65 73 T3 17 20 21 22 34 37 62 T4 20 22 54 57 65 73 45 T5 20 54…
Meem
  • 47
  • 5