About EntityManagerFactory

101-110 of 200Refresh
Forum
1

@MappedSuperclass and @Transient not working as I expected

javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import javax ... protected int id; @Version protected long version; @Transient protected EntityManagerFactory emf
Forum
1

@OneToMany(fetch = FetchType.LAZY) list is always null

loading, but when I use LAZY with PersistenceUnit (not EntityManagerFactory), it fails. Entities ... loading, but when I use LAZY with PersistenceUnit (not EntityManagerFactory), it fails. The no-detach
Issue
1

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

.EntityExistsException; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory ... ); } } private EntityManagerFactory emf; public ReproduceTest() { emf = Persistence
Forum
1

Attempt to begin a new transaction when a transaction is active

The code I have a RecordDao stateless java bean :  @Stateless public class RecordDao { private EntityManagerFactory emf; private EntityManager em; public RecordDao() { } @PostConstruct ... the EntityManagerFactory and the EntityManager explicitly, but let the application server do it for you (see this tutorial). Thank you very very much!  adibe
Forum
1

Bug: ClassCastException by retrieval

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction ... args   */ public static void main(String[] args) {   EntityManagerFactory emf = Persistence
Forum
1

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

[] args)     {         EntityManagerFactory emf =             Persistence.createEntityManagerFactory ... .*"); EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db
Forum
1

Cast exception?

and extracted the method that is throwing the exception: /* */ public static EntityManagerFactory ... */ EntityManagerFactory localEntityManagerFactory = null; /* 74 */ PersistenceProviderResolver
Issue
1

Close() Method of EMF throwing "PersistenceException: Connection is closed" on first attempt to close.

the EntityManagerFactory associated with these ODBs by calling the EMF’s close() method.   The exception / stack ... indicates that the EntityManagerFactory was already closed when an attempt to close it happened
Forum
1

connection pooling

/server Every EntityManagerFactory instance manages a pool of connections and reuses ... with EntityManagerFactory (which manages the connection pool) and EntityManager (which represents a connection
Forum
1

CriteriaQuery .where() for multiple conditions

) { EntityManagerFactory emf = (EntityManagerFactory) servletContext.getAttribute("emf"); EntityManager em = emf