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 ... |
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" ...
|
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 ... |
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 ... |
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" ...
|
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 ... |
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 ... |
|
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 ) ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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) ... |
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, ... |
|