Home » Search

About EntityManagerFactory

71-80 of 200Refresh
Forum
2

Remove an entity which attributes were changed - OptimisticLockException

seems to be using one or more EntityManagerFactory / EntityManager instances, i.e ... "? Are you sure that the same EntityManager (not just the same EntityManagerFactory) is used by ... T1855 {     public static void main(String[] args) {         EntityManagerFactory emf
Issue
2

Threaded Test - Failed to commit transaction: Unexpected internal exception

() {         EntityManagerFactory emf = Persistence.createEntityManagerFactory(             "$objectdb/db ... extends TestRunnable {         private String _name;         private EntityManagerFactory _emf;         private int _num;         public ObjectDbProducer(String name, EntityManagerFactory emf, int num
Issue
2

Unexpected Exception during commit

.fastmodel.fastplan.db.EntityManagerFactory.doFilter(EntityManagerFactory.java:158) at org.apache ... case that produces the exception every time:     javax.persistence.EntityManagerFactory emf ... .Enhancer.enhance(Enhancer.java:87) at com.fastmodel.fastplan.db.EntityManagerFactory
Forum
2

Weird behaviour with enhanced classes and embedded entities

.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence ... ("objectdbsscce.*");         // open db     EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("objectdbsscce.odb");     entityManager = entityManagerFactory
Forum
1

Guessbook tutorial: Java EE 6 JPA Tutorial - Maven Project

._PersistenceException: Attempt to obtain a connection from a closed EntityManagerFactory at com ... EntityManagerFactory at com.objectdb.o.MSG.d(MSG.java:61) at com.objectdb.o.OMF.ah(OMF.java:661) at com ... ._PersistenceException: Attempt to obtain a connection from a closed EntityManagerFactory at com.objectdb.o
Issue
1

Issues with JDO Casting & Full Qualified Names

; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; public final class F328 { public static void main(String[] args) {   EntityManagerFactory emf = Persistence ... .persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence
Forum
1

Left join fetch behaviour doesn't retrieve children?

.persistence.EntityManagerFactory; import javax.persistence.Id; import javax.persistence.ManyToMany ... ObjectDbTest {     public static void main(String[] args)  {               EntityManagerFactory emf ... ) {   EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb:$objectdb/db/test.tmp;drop
Forum
1

ObjectDB CRUD Examples

Would this be correct?     public List read() { EntityManagerFactory emf ... . Would this be correct?     public List read() { EntityManagerFactory emf = Persistence ... and see if it works. It would be more efficient to avoid creating and closing EntityManagerFactory instances
Forum
1

ODB IndexActivation NullPointerException

periods Do you mean with opening and closing the creation of EntityManagerFactory or of EntityManager ... the following code block after creating the EntityManagerFactory. this.entityManagerFactory ... = this.entityManagerFactory.createEntityManager(); final String indexActivationThreadName = "ODB
Forum
1

Schema Update: class hierarchy change

.EntityManagerFactory; import javax.persistence.Persistence; public final class Test { public static void main(String[] args) {   System.out.println("start");   EntityManagerFactory emf = Persistence ... .EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence