Internal Website Search

121-130 of 200 resultsRefresh

Updating Entities

("$objectdb/db/payrollDB.odb"); public static EntityManager employeeDB = emf.createEntityManager(); public static EntityManager paygradeDB = emf.createEntityManager(); ... } I use ... that the two separate EntityManagers were not communicating their changes to each

Merge with Parent/Child entities not possible

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.FetchType; import ... ; } } private EntityManager createEntityManager(String dbFileName, boolean delete) {   ... .createEntityManagerFactory("objectdb:" + dbFileName);   EntityManager entityManager = emf

Internal exception when updating date filed (TemporalType.DATE)

EntityManager entityManager;         public DataManager(String ... ;      entityManager = entityManagerFactory.createEntityManager();    ... ;          entityManager.getTransaction().begin

Performance in large transactions

<100; i ++) { EntityManager entityManager = getEntityManagerFactory().createEntityManager(); entityManager.setFlushMode(FlushModeType.AUTO); EntityTransaction transaction = entityManager.getTransaction(); transaction.begin (); // the "problem" Query Entity2 x

@OneToMany(fetch = FetchType.LAZY) list is always null

{ private String mode; @PersistenceContext(unitName = "my-pu") private EntityManager entityManager; @EJB private Manager manager; private List<Parent> parents; @PostConstruct private void postConstruct() { Query query = entityManager.createQuery

javax.persistence.PessimisticLockScope

may be passed as an argument to the methods of the EntityManager" title="Interface in javax.persistence">EntityManager ,

NamedQuery.name

/jpa/EntityManager" title="Interface in javax.persistence">EntityManager methods

javax.persistence.Persistence

: the factory that creates EntityManagers configured according ... > Returns: the factory that creates EntityManagers configured

javax.persistence.PersistenceContext

a dependency on a container-managed EntityManager" title="Interface in javax.persistence">EntityManager and its associated persistence context.

javax.persistence.LockModeType

argument to one of the EntityManager" title="Interface in javax.persistence">javax.persistence.EntityManager methods that take locks