entitymanager
Exception while lazily loading a collection from entity
I fear that I miss a very basic point, but I\'m stuck at the moment, hopefully someone can point my eyes starring to hard at it to the right one...[详细]
2023-03-22 19:36 分类:问答Force 'reload' of JPA EntityManager in integration test
In a Spring-enabled integration test, I need to force the EntityManager to re-read from the database.[详细]
2023-03-22 18:37 分类:问答Ejb3Configuration.addPackage() does not find entities
I want to add known JPA entities programatically when creating EntityManagerFactory. So I have this sequence (Hibernate 3.6)[详细]
2023-03-22 12:41 分类:问答entityManager.getTransaction().rollback() detaches entities?
I have the following piece of code: EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"test\")[详细]
2023-03-21 20:00 分类:问答problem with JPA EntityManager
i am new to JPA, i have a problem with my JPA . i have used the entity manager as follows: 1: package com.icesoft.icefaces.samples.datatable.jpa;[详细]
2023-03-21 12:05 分类:问答NoClassDefFoundError Could not initialize class EMFService
I have imported a an app engine project in my eclipse.It was running fine on my previous laptop, here i have copied the eclipse directory from my old machine and imported the project in it. Now I am s[详细]
2023-03-21 05:16 分类:问答Trying to find an entity in the database
I have a code like this: AJPAController aJPAController; AClass aClass = aJPAController.find((Integer.parseInt(request.getParameter(\"id\")));[详细]
2023-03-17 17:43 分类:问答Hibernate Entity manager auto flush before query and commit changes to DB in transaction
I am using Hibernate 3.6.0 with JPA 2 on Jboss AS 6.0.0 final. In an EJB of mine, there\'s a method which updated entity values and do some query on it. The whole method is running in a BMT transactio[详细]
2023-03-16 06:31 分类:问答JPA EntityManager question
I\'m quite new to both JPA/Hibernate and to Java, and am having some trouble with the basics of using the EntityManager class to manage persistent objects.I would appreciate it very much if someone wo[详细]
2023-03-15 09:42 分类:问答Entities Not Persisting - Spring + Hibernate + JPA
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 annotated with @Transactional. It uses a DAO[详细]
2023-03-15 05:57 分类:问答