EntityManager « Transaction « Spring Q&A





1. Problem creating JPA EntityMananger in Spring Context    stackoverflow.com

I have a JPA/Spring application that uses Hibernate as the JPA provider. In one portion of the code, I have to manually create a DAO in my application with the ...

2. entitymanager.merge does not seem to commit    stackoverflow.com

I have an application using Tomcat/Spring 3/JPA/Hibernate but my merges do not commit to datbase. This is the configuration: spring-conf.xml:

 <bean id="dataSource"
  class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  <property name="driverClassName" value="com.mysql.jdbc.Driver" />
  <property name="url" ...

3. EntityManager + Spring Transactional Question    stackoverflow.com

i have a doubt on concept i think i am mixing some stuff. I have a application with DAO layer the implementation of those DAO use SessionFactory (Hibernate) to execute ...

4. Entities Not Persisting - Spring + Hibernate + JPA    stackoverflow.com

I'm using Spring + Hibernate + JPA and I have a situation where I can't get my entities to persist to the database. I've set up a service class that is ...

5. No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but found 0    stackoverflow.com

Can someone tell me what's wrong with my config? I'm overly frustrated and I've been loosing my hair on this. Any pointer will be welcome. Thanks Persistence.xml

    <?xml version="1.0" ...

6. Could not open JPA EntityManager for transaction in Spring Test    stackoverflow.com

I have a java project using Spring 3.0 , JPA 2.0 with MyEclipse IDE Trying to convert some basic dao integration tests to spring and have run into a few issues. Here's ...

7. EntityManager was not closed after non-transactional query    forum.springsource.org

EntityManager was not closed after non-transactional query I used spring Roo m2 to generate some code and run it on GAE. I have some issues. Here is what I want to ...

8. Questions regarding @Transactions and EntityManager in persistence-test-classes    forum.springsource.org

Questions regarding @Transactions and EntityManager in persistence-test-classes Hello, I have a question regarding testing persistence when using Spring Data JPA. A typical test class looks like this: Code: @RunWith( SpringJUnit4ClassRunner.class ) ...

9. Hibernate-EntityManager+Spring2.0+JTA=No Flush on Transaction Commit    forum.springsource.org

Hibernate-EntityManager+Spring2.0+JTA=No Flush on Transaction Commit I'm using The latest HibernateEntityManager with Spring 2.0 trying to use JTA Transactions. Everything appears to work great, except the entityManager is not flushing when the ...





10. Spring managed EntityManager not aware of the ongoing transaction ?    forum.springsource.org

Spring managed EntityManager not aware of the ongoing transaction ? Hello, I'm trying to implement a DA0 bases on plain JPA as is explained in the official Spring documentation (chapter 12.6.3 ...

11. @Transactional and persist(..) of the EntityManager    forum.springsource.org

I have something like this: Code: @Transactional private void doSomething() { MyClass test = ... getEntityManager().persist(test); ... // a method that throws an exception. } Since after the persist, I have ...

12. EntityManager Flush setting rollback    forum.springsource.org

Hi, I'm trying to catch a constraint violation in my database without generating a Global rollback. After some hard work I've found that the EntityManager Flush method is marking my Global ...

13. EntityManager and transaction management with JSF    forum.springsource.org

EntityManager and transaction management with JSF Hi guys, I'm moving a thread that started here to gather more input. dxxvi initially asked whether using the OpenEntityManagerInViewFilter in a JSF-based web app ...

14. JPA error: A JTA EntityManager cannot use getTransaction()    forum.springsource.org

HTML Code: javax.ejb.EJBException: EJB Exception: ; nested exception is: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction() at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:105) at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:87) ...

15. Spring + Hibernate: Automatic transactions and EntityManager, how?    forum.springsource.org

Mar 14th, 2010, 08:20 AM #1 lharpf View Profile View Forum Posts Private Message Junior Member Join Date Mar 2010 Posts 3 Spring + Hibernate: Automatic transactions and EntityManager, how? Hi, ...