Internal Website Search
151-160 of 200 resultsRefreshProblem on JPA Merge Entity. Hello, I have a problem with the EntityManager.merge() function. I ... { @PersistenceContext private EntityManager entityManager; public void saveErgoClass(ERGOClass ergoClass ... EntryAlreadyExistException, DaoException { entityManager.persist(ergoClass); } public void | |
Filename.odb$ Persisting Issue.createEntityManagerFactory("$objectdb/db/payrollDB - Copy0.odb"); public static EntityManager departmentDB = emf.createEntityManager(); public static EntityManager employeeDB = emf.createEntityManager(); public static EntityManager paygradeDB = emf.createEntityManager | |
Mismatch client-server protocol prefix connection and sockets (i.e. same EntityManager) by two concurrent threads. ObjectDB synchronizes use of EntityManager by different threads ... implementation. Maybe a socket from a closed EntityManager is still used | |
openejb jpa jaas module.UserInfo; import com.bayner.jpa.UserPrincipal; import javax.persistence.EntityManager; import javax ... EntityManagerFactory entityManagerFactory; private EntityManager entityManager ... ")); entityManager = entityManagerFactory.createEntityManager | |
Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne).persistence.EntityManager; import javax.persistence.FlushModeType; import javax.persistence.Id ... CompoundKeyMapItem x") }) public class Container { public static Container getInstance(EntityManager ... (Integer numberToGen, EntityManager em) throws TestException { if (lastInstanceInMap == null | |
Visibility of changes in Transaction is not visible to a JPA QL Query static Singleton getInstance(EntityManager em) { Singleton c = em.find(Singleton.class, "1 ... void generateItems(EntityManager em, int howMany) { if (lastInstance == null) {   ... ; } } public long howManyItemsExist(EntityManager em) { TypedQuery<Long> q | |
Entity listener - event instead of object" version of object stored in database. I can't find the nice way to use EntityManager in EntityListener ... regarding the technical question. Do you need to obtain an EntityManagerEntityManager. support Support I know about this feature | |
Query results are not up to date for entities, not primitives the EntityManager may break its synchronization with the database. For example, the EntityManager may not ... . Therefore, it is a good practice to use a separate EntityManager for UPDATE queries." You are using a new EntityManager | |
[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961).EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence ... "); } public EntityManager ... ) { EntityManager em = getEntityManager(); try { return em.find(MomentEntity.class, id | |
Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct) EntityManager em; public List<Element> findElements() {   ... EntityManager (the default as explained below), so when the findElements method ... ="code">findElements, etc. 2. Switch to extended scope EntityManager |