Home » Search

About EntityManagerFactory

101-110 of 200Refresh
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
Forum
1

Database absolute filepath

Is there a line of code that can be used to print out my databases absolute path? I have set it as follows: EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/database ... { public static void main(String[] args) { EntityManagerFactory emf = Persistence
Forum
1

Database(*.odb) file size on disk

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.FlushModeType ... main(String[] args) {   EntityManagerFactory emf;   emf = Persistence.createEntityManagerFactory
Forum
1

Date field Index is corrupted due to time change

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue ... dtf = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss");                 EntityManagerFactory emf