Home » Search

About EntityManagerFactory

121-130 of 200Refresh
Forum
1

Help with 'not like/lower' query

.EntityManagerFactory; import javax.persistence.Persistence; import javax.persistence.TypedQuery ... void main(String[] args)  {         EntityManagerFactory emf =             Persistence
Forum
1

How to do multithreading with embedded ObjectDB

Hi, I've tried to implement a counter with ObjectDB, but the following code doesn't work as expected: final EntityManagerFactory emf = Persistence.createEntityManagerFactory("test.odb ... ); final EntityManagerFactory emf = Persistence.createEntityManagerFactory
Forum
1

How to use JOIN FETCH?

javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax ... ())   {    file.delete();   }   file.createNewFile();   EntityManagerFactory emf = Persistence
Issue
1

huge heap usage

The heap dump shows one EntityManagerFactory with 105,689 EntityManager instances. This could be caused ... one EntityManagerFactory (EMF):   thanks, this helps pretty much hgzwicker
Forum
1

Is it possible to remove parent/child entities without refresh?

; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax ... EntityManager createEntityManager(String dbFileName, boolean delete) {   EntityManagerFactory emf = null
Forum
1

Java 6/7 Performance Comparison

(); EntityManagerFactory emf =             Persistence.createEntityManagerFactory("$objectdb/db/points.odb ... . Thanks - Andrew Opening an EntityManagerFactory and an EntityManager should never take 30 seconds
Forum
1

java.nio.channels.OverlappingFileLockException

:     EntityManagerFactory entityManagerFactory =         Persistence.createEntityManagerFactory("$objectdb
Forum
1

javax.persistence.PersistenceException: No Persistence provider for EntityManager named in Karaf 4.0.7 and OSGi DS test

().setContextClassLoader(EntityManagerFactory.class.getClassLoader()); then it works. Regards, Alex This error message ...  EntityManagerFactory as a service such that one simply needs to request a reference to the service
Forum
1

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

" ) private EntityManager em; but it is working when the EntityManagerFactory gets injected instead ... (unitName = "guest-pu" ) private EntityManagerFactory emf; public EntityManager getEntityManager
Forum
1

Join performance in Objectdb

{         @SuppressWarnings("boxing")     public static void main(String[] args) {         EntityManagerFactory ... (String[] args) {         EntityManagerFactory emf =             Persistence.createEntityManagerFactory