JPA 3 « Transaction « Spring Q&A





1. Pro0blem with Hibernate / Transaction / Sequences    forum.springsource.org

Pro0blem with Hibernate / Transaction / Sequences hi all, i have an interesting usecase which is giving me problems at the moment I am using Hibernate via spring in a standalone ...

2. Hibernate + Spring Transaction , 20 $ via pay pal for right solution    forum.springsource.org

Hibernate + Spring Transaction , 20 $ via pay pal for right solution I am now pretty desperate to get this thing done. If you help me to get answer to ...

3. hibernate-search indexing via event handlers and transactions    forum.springsource.org

Feb 17th, 2009, 02:29 PM #1 drfence View Profile View Forum Posts Private Message Junior Member Join Date Jun 2007 Posts 26 hibernate-search indexing via event handlers and transactions Here is ...

4. Hibernate Locking.    forum.springsource.org

Hibernate Locking. Hi, We are developing Spring, Hibernate based MVC application in Weblogic 10. The requirement is , the user navigation multiple pages to create purchase order. 1. if an user ...

5. JTA + JPA/Hibernate + Glassfish    forum.springsource.org

JTA + JPA/Hibernate + Glassfish Hi, Im' trying to configure my application to use JTA transactions running on glassfish. I keep getting a TypeMismatchException every time I start the server : ...

6. Declerative Transactions and Hibernate    forum.springsource.org

Mar 1st, 2009, 06:39 PM #1 udhamsingh View Profile View Forum Posts Private Message Junior Member Join Date Mar 2009 Posts 2 Declerative Transactions and Hibernate Spring user experts !!! I ...

7. Table locking issue in hibernate while doing transaction mgmt with TransactionProxyFa    forum.springsource.org

Table locking issue in hibernate while doing transaction mgmt with TransactionProxyFa I have an application that is built in struts-spring- hibernate framework. i have used HibernateTransactionManager and TransactionProxyFactoryBean to maintain the ...

8. Transaction issues using Spring and hibernate    forum.springsource.org

Transaction issues using Spring and hibernate Hi, I am using Spring and hibernate to access the database. I implemented transactions declaratively in spring(for the service layer) and for test cases that ...

9. Hibernate error on doing updates in a Transaction    forum.springsource.org

Hibernate error on doing updates in a Transaction Hi, I'm getting this error on doing updates to my database records using hibernateTemplate.update(POJO) (I am running this in a loop for set ...





10. Can I mix Spring's @Transactional with Hibernate's getCurrentSession()    forum.springsource.org

It seems that if I use Spring's declarative transaction control, I can't use Hibernate's getCurrentSession().getTransactionManager().commit () any more. Can somebody please confirm this? -Anqing

11. Portlets with JSF+SPRING+HIBERNATE+DB2 Iseries and Pessimistic lock strategies    forum.springsource.org

Portlets with JSF+SPRING+HIBERNATE+DB2 Iseries and Pessimistic lock strategies Hello. I need understand how i can make a portlet where i can lock one or many registers, of diferents database tables, before ...

12. Spring / Hibernate / JTA / XA config    forum.springsource.org

Spring / Hibernate / JTA / XA config The applications I'm working on have moved into an arena with which I am unfamiliar. We will now (I believe) require distributed transaction ...

13. hibernate's "cascading save" & spring transactions    forum.springsource.org

i'm somewhat confised about hibernate's "cascading save" feature where is automatically performs the .save() function (non spring managed hibernate code example below). if you are using spring managed hibernate transactions, does ...

14. Our Spring/Hibernate config executes too many commits & rollback    forum.springsource.org

Our Spring/Hibernate config executes too many commits & rollback In our application (Webapps with Tomcat), we use spring 1.1/hibernate 2 / struts. I use P6Spy to check the executed SQL orders. ...

15. JPA and SimpleJdbcTemplate in same transaction    forum.springsource.org

Hi, I have an application which has different data access strategies: JPA via @PersistenceContext and SimpleJdbcTemplate. Now I need so make a call into a JPA-DAO and into a SimpleJdbcTemplate-DAO in ...

16. Spring Transaction vs Hibernate Transaction    forum.springsource.org

Spring Transaction vs Hibernate Transaction Hi , I have configured declarative method level transaction in SPRING.I have configured HibernateTransactionManager as platform transaction manager.whenever this particular method is called spring creates a ...





17. Confused in Understanding Hibernate and Spring Transactions :    forum.springsource.org

Confused in Understanding Hibernate and Spring Transactions : Hi , I am seeing different mechanisms for handling Transactions in Spring and Hibernate combination may be with different versions . Can anybody ...

18. Spring + hibernate - Transaction management    forum.springsource.org

Spring + hibernate - Transaction management I need to manage the transactions for multipel datasources those will be used by DAO. for example. there are 2 datasources ReadDT1 ReadWriteDT1 I have ...

19. JTA Transactions are not working (spring+JPA+Hibernate)    forum.springsource.org

JTA Transactions are not working (spring+JPA+Hibernate) Hi all, I'm using spring 2.5 with JPA, and the persistence provider is Hibernate (3.2.5) while the application is deployed on Jboss 5.0.0. The problem ...

20. Desperatly need help - JPA - Hibernate - JTA    forum.springsource.org

Desperatly need help - JPA - Hibernate - JTA Hello, i have a web application configured with JPA + Hibernate + Spring. For now i'm accessing with success this one schema ...

21. InvalidDataAccessApiUsageException Spring - Hibernate transaction    forum.springsource.org

InvalidDataAccessApiUsageException Spring - Hibernate transaction Hi I am new with Spring and Hibernate and had stuck with problem which has probably simple solution , but I can get it I have ...

22. Spring Hibernate JTA Transaction configuration    forum.springsource.org

Spring Hibernate JTA Transaction configuration Hi, I am trying to configure global (JTA) transactions in our application which is a spring based application deployed in a tomcat web container. We use ...

23. Spring @Transactions and Hibernate Shards    forum.springsource.org

Spring @Transactions and Hibernate Shards I am trying to provide a Spring compatible layer that works with Hibernate Shards and I have it mostly working. I keep running into the error ...

24. No rollback with JPA    forum.springsource.org

Aug 2nd, 2009, 07:01 AM #1 julio View Profile View Forum Posts Private Message Senior Member Join Date Nov 2006 Posts 217 No rollback with JPA Hi, before the code applicationContext.xml ...

25. Hibernate Transaction rollback issue    forum.springsource.org

Aug 7th, 2009, 11:48 PM #1 regzinghh View Profile View Forum Posts Private Message Junior Member Join Date Aug 2009 Posts 2 Hibernate Transaction rollback issue Hi, I am getting the ...

26. SPRING + HIBERNATE: Table Locking    forum.springsource.org

27. Hibernate + Spring + JTA    forum.springsource.org

Hibernate + Spring + JTA Hello, I am trying to setup my Hibernate session factory with a JTA transaction manager. I am using hibernate 3.3.2.GA and Spring 2.5.6. I am using ...

28. Question regarding Spring's Hibernate Transaction Management    forum.springsource.org

Question regarding Spring's Hibernate Transaction Management Hi, I have a question regarding Spring's Hibernate Transaction Management. Here's my scenario... I have an @Transactional AssetService which has AccountService injected using an @Autowired ...

29. spring hibernate transaction    forum.springsource.org

while executing a hibernate transaction using spring context a database exception occurs then transaction gets rollback and the same transaction executes from the begining again. i will appreciate if anybody can ...

30. Managing transaction using Hibernate template    forum.springsource.org

I am using Hibernate template to save Code: import org.springframework.orm.hibernate3.support.HibernateDaoSupport; public class ProjectSystemDao extends HibernateDaoSupport { public boolean insertSystem (Object a) { this.getHibernateTemplate().save(a); } } This is being called from service ...

31. Hibernate and Transaction    forum.springsource.org

Hibernate and Transaction Hello, ich have a problem with spring transaction. I hope somone find my mistake =). i create a simple Unit Test, it shows the effect and the error. ...

32. org.hibernate.HibernateException: get is not valid without active transaction    forum.springsource.org

org.hibernate.HibernateException: get is not valid without active transaction I am trying remove the usage of hibernateTemplate from my application and use the hibernate api directly by using annotation driven transactions as ...

33. HIbernate JTA and SPring    forum.springsource.org

HIbernate JTA and SPring Hi I am using Hibernate Search with Spring and all is well when I use non-jta transaction manager. When i use JTA via Spring things don't work ...

34. Spring Hibernate Optimistic Locking Versioning Issue    forum.springsource.org

Spring Hibernate Optimistic Locking Versioning Issue Hello everyone, I am facing problem while implementing Concurrency Control through Hibernate version tag. I will be not able to put code here due to ...

35. Spring, Hibernate and transactions    forum.springsource.org

Spring, Hibernate and transactions Hi I'm using Spring, Hibrnate, MySQL in my application. As the transaction manager I'm using org.springframework.orm.hibernate3.HibernateTransa ctionManager. I'm using standard configuration for transactions, some methods are read-only, ...

36. Hibernate transaction    forum.springsource.org

Hey All! Just a question regarding how to code a simple transaction. I have to do some db actions in a single unit of work: Code: .. getHibernateTemplate().saveOrUpdate(myObj); getHibernateTemplate().saveOrUpdate(anotherMyObj); .. But ...

37. Spring Hibernate Transactions not flushed    forum.springsource.org

Spring Hibernate Transactions not flushed Hello, I am using spring 2.5.6, hibernate 3.3 and tomcat 6, MySQL 5. Below is my application.xml showing database config. The problem I have is that ...

38. Spring 2.5 + JPA + Hibernate = No Transactions?    forum.springsource.org

Mar 4th, 2010, 05:52 AM #1 rhyce View Profile View Forum Posts Private Message Junior Member Join Date Mar 2010 Posts 4 Spring 2.5 + JPA + Hibernate = No Transactions? ...

39. Spring transaction Management with hibernate    forum.springsource.org

Spring transaction Management with hibernate I am creating my DAO using LocalSessionFactoryBean. I have configured Spring transactionc context. To avoid lazy loading exceptions I am using hibernate property to bind the ...

40. JPA transactions best practice    forum.springsource.org

JPA transactions best practice There are dozens of posts that mention that the Spring best practice is to place transactions in the Service, not in the DAO. But finding details on ...

41. Hibernate Transaction BeanDefinitionStoreException:    forum.springsource.org

Mar 22nd, 2010, 09:41 PM #1 damdamdoo View Profile View Forum Posts Private Message Junior Member Join Date Dec 2009 Posts 4 Hibernate Transaction BeanDefinitionStoreException: Hello everybody. I am stucked with ...

42. JTA Spring and Hibernate: something failing    forum.springsource.org

JTA Spring and Hibernate: something failing Hi, I had an application to connect to 1 DB all was good till I had to connect to 2 DB and using the same ...

43. Strange @Transactional behavior with Hibernate    forum.springsource.org

Strange @Transactional behavior with Hibernate I am implementing the annotation-driven transaction management described here (http://static.springsource.org/sprin...#orm-hibernate) using Spring 3 and Hibernate 3.2. My insert transactions are not committed to the database, even ...

44. Hibernate Transaction    forum.springsource.org

I have a JUnit Testing Class that extends SpringJUnit4ClassRunner.class Code: @Test @Transactional public void teste1() throws ParseException, SQLException{ TimeZone.setDefault(super.timeZone); data = format.parse("09/08/2010 00:00:00"); servico.xxxxxxx(codxxxx, dx, tx, ox, codx); repositorio.flush(); //hibernate repository ...

45. Spring Hibernate Transaction    forum.springsource.org

Spring Hibernate Transaction Hi, I need a help regarding managing transaction. I am using spring/hibernate. I have following layers- * Web Service Endpoint * Business Service * DAO I extend HibernateDaoSupport ...

46. Hibernate Transaction best practice    forum.springsource.org

Hibernate Transaction best practice Is there a better way to fix the error that the way its done below. I got the following exception Code: org.hibernate.HibernateException: No Hibernate Session bound to ...

47. One transaction per request w/Hibernate    forum.springsource.org

I'm currently using the TransactionProxyFactoryBean to handle transaction using Hibernate in my application. After viewing the logging, I noticed that a new transaction seems to be started/closed for every call made ...

48. java se @Transactional and JPA    forum.springsource.org

I'm creating a standalone java se application. I was reading chapter 10 in the reference documentation and saw the recommended approach to use transactions in this environment is to use the ...

49. Hibernate createCriteria and @Transactional    forum.springsource.org

Hibernate createCriteria and @Transactional Hello! For data access I'm using Hibernate as JPA provider with declarative transactions turned on, and everything works perfect until I need hibernate's specific createCriteria feature. To ...

50. JPA transcation rollBack is not working    forum.springsource.org

JPA transcation rollBack is not working Hi all I have done an application configuration using hybernate + JPA ,and atomikos for XA transcation management and spring 3.0 ,here every thing is ...

51. Hibernate + glassfish + JTA = freeze    forum.springsource.org

Hibernate + glassfish + JTA = freeze Hi, I'm trying to deploy an webapp on glassfish 3.0.1. It use spring 3.0.5. Originally it works on tomcat with spring hibernate local transation ...

53. Spring configured JTA and Hibernate    forum.hibernate.org

55. Transaction and Spring    forum.hibernate.org

57. Spring Transactions with Hibernate    forum.hibernate.org

60. Transactions with Spring and Hibernate    forum.hibernate.org

65. Hibernate Transaction With Spring    forum.hibernate.org