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
2 answers

Spring4 + and Hibernate 4 Transactions

Using spring 4.0.6.RELEASE, Hibernate 4.3.6.Final and hsqldb 2.3.2. My integration test looks like the following; @Test(expected = DataIntegrityViolationException.class) public final void testDuplicateItems() { final ServerEntity serverEntity1…
user1859465
  • 883
  • 1
  • 11
  • 28
0
votes
0 answers

how to get connection object from transaction

We are using spring for transaction management . When ever a new java.sql.Connection is created from data source , we want to call a procedure on this connection object. The procedure is used to set certain session variables in the Oracle DB. So far…
lives
  • 1,243
  • 5
  • 25
  • 61
0
votes
1 answer

Request processing failed; nested exception is javax.persistence.TransactionRequiredException: No transactional EntityManager available

An exception occurs while I'm trying to persist an object. import org.springframework.transaction.annotation.Transactional; @Repository("DBRepository") @Transactional public class DBRepository implements Repository { @PersistenceContext …
user3029106
  • 201
  • 3
  • 8
0
votes
2 answers

Spring Data JPA + Hibernate : catch block inside a Transactional method is never reached

In our Spring Data JPA + Hibernate application, there are various methods having multiple JPA operations inside the same transaction - below is the code/configuration on one of the spring service…
aRvi
  • 107
  • 1
  • 2
  • 13
0
votes
1 answer

Email Service Provider where a Transactional Email can be sent using a Template created using its Web interface

A company I am developing for needs an email service provider where its own non-technical design staff can create an email template using the provider's design web interface. Transactional emails are to be sent to a single recipient specifying the…
Edwin Meyer
  • 321
  • 3
  • 7
0
votes
1 answer

Spring @Transational no rollback for jdbctemplate.update(PreparedStatementCreator, KeyHolder)

I'm newbie with spring framework. I used spring.xml to define the datasouce and DataSourceTransactionManager, so that I could insert data with jdbctemplate object. And now I want to add the rollback to the transaction. Unfortunately this rollback…
Ophiuchus Hahn
  • 145
  • 2
  • 12
0
votes
1 answer

How to configure two hibernate transactionManager for two different sessions

I have a project which deals with two different database instances. Each access to a database is transactional, but the transaction on database1 do not need to be linked to transaction on database2. I am using Hibernate and spring-tx 4.0.3 Release,…
0
votes
1 answer

Why this @Transactional method don't do several saves

I am trying to save in same user_friend db table this relationship of friends, but only is persist in db one when method is ended. @Override @Transactional(readOnly = false) public boolean saveLocalFriends(UserFriend userFriend) { …
Dani
  • 4,001
  • 7
  • 36
  • 60
0
votes
0 answers

@Transactional guice annotation using JTA

We have an application running both in Weblogic and Tomcat. We use @Transactional annotation of Guice package to correctly perform the database operations using a persistenceUnit of RESOURCE_LOCAL type using Tomcat. Using Weblogic, persistence type…
JSP749
  • 127
  • 1
  • 3
  • 12
0
votes
1 answer

ui:repeat inside a ui:repeat and LazyInitException

I'm currently experiencing a LazyInitException with a page containing code like the following: