About EntityManagerFactory

131-140 of 200Refresh
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
Forum
1

Memory leak while merging parent with No Cascade annotation with children

.EntityManagerFactory; import javax.persistence.Id; import javax.persistence.ManyToMany; import ... (String[] args)  {         EntityManagerFactory emf = Persistence.createEntityManagerFactory
Forum
1

Merge with Parent/Child entities not possible

.EntityManagerFactory; import javax.persistence.FetchType; import javax.persistence.FlushModeType; import ... , boolean delete) {   EntityManagerFactory emf = null;   if (delete) {    new File(dbFileName).delete
Forum
1

Multi-thread access to single EM's entities

; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax ... [] args) throws InterruptedException {         EntityManagerFactory emf = Persistence
Forum
1

multiple LEFT JOINs do not work as expected

[] args) {         EntityManagerFactory emf =             Persistence.createEntityManagerFactory ... main(String[] args) { EntityManagerFactory emf = Persistence