Internal Website Search

191-200 of 200 resultsRefresh

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

" ) private EntityManager em; but it is working when the EntityManagerFactory gets injected ... class GuestDao { @PersistenceUnit(unitName = "guest-pu" ) private EntityManagerFactory emf

"where in" query

;    EntityManagerFactory emf =           ... ; {         EntityManagerFactory emf =     

Unable to persist fields in subclass

.EntityManagerFactory; import javax.persistence.Persistence; public class SimpleTestSuite { public static void main(String[] args) { EntityManagerFactory emf = Persistence

JPA - ExceptionInInitializerError when creating EntityManager

String EMAIL_FROM; static { EntityManagerFactory emf = javax.persistence.Persistence ... ;       javax.persistence.EntityManagerFactory emf = javax.persistence

Entity factory - best practices

> Creating multiple EntityManagerFactory instances is thread safe but inefficient. It is more efficient to create one EntityManagerFactory

Deadlock, if two threads try to close an entity manager

>Another thread is closing the EntityManagerFactory that owns ... ;on both the EntityManager and the EntityManagerFactory

Cannot sort descending, when ordering by caluculated float in a method

[] args)     {         EntityManagerFactory emf ... ) { com.objectdb.Enhancer.enhance("javaapplication.*"); EntityManagerFactory

Mysterious "Attempt to persist a reference to a non managed instance" error

.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence ... ; EntityManagerFactory emf = Persistence.createEntityManagerFactory("./db/db0.odb");      

use of Singleton into tomcat

hi all. i would write a class singleton that encapsulate the entitymanagerFACTORY    into it.(the entitymanagerFactory  IS A property of the only instance of class singleton. (the class singleton is not a Ejb!!!!!!!!!). into tomcat it not

Potential memory leak

), which is referenced by the entity. The Main class opens a database file, creates an EntityManagerFactory ... ;EntityManager or at least from an EntityManagerFactory