Internal Website Search

51-60 of 200 resultsRefresh

Setting and Tuning of JPA Queries

/EntityManager">EntityManager em can be visible to anyone who uses em, even before committing the transaction (but not to users of other EntityManager instances). JPA ... >EntityManager/find_Class__Object">find. However, query execution

Retrieving JPA Entity Objects

. Given an EntityManager">EntityManager em Employee employee = em.EntityManager ... to Employee is not required because EntityManager/find_Class__Object

Shared (L2) Entity Cache

Every EntityManager">EntityManager owns ... cache. An attempt to retrieve an entity object that is already managed by the EntityManager ... /EntityManager">EntityManager. This section describes a level 2  (L2) cache

SELECT clause (JPQL / Criteria API)

="/api/java/jpa/EntityManager">EntityManager em: EntityManager/createQuery_String_Class_">createQuery("SELECT c FROM Country c", Country.class ... /java/jpa/TypedQuery">TypedQuery<String> query = em.EntityManager

Query Parameters in JPA

Country getCountryByName(EntityManager">EntityManager em, String name ... /jpa/EntityManager/createQuery_String_Class_">createQuery( "SELECT c FROM Country c ... /jpa/EntityManager">EntityManager em, String name) {


an EntityManager. Removing these objects from the EntityManager ... because bypassing the EntityManager may break its synchronization with the database. For example, the EntityManager may not be aware that a cached entity object in

Deleting JPA Entity Objects

the EntityManager/remove_Object">remove method or implicitly ... /EntityManager/remove_Object">remove method: Employee employee = em.EntityManager/find_Class__Object">find(Employee.class, 1

Updating JPA Entity Objects

transaction: Employee employee = em.EntityManager/find_Class__Object">find(Employee.class, 1); em.EntityManager ... .setNickname("Joe the Plumber"); em.EntityManager/getTransaction

JPA Criteria API Queries

.EntityManager/getCriteriaBuilder">getCriteriaBuilder(); EntityManager">EntityManager's EntityManager/getCriteriaBuilder">getCriteriaBuilder method (both methods


> Superinterfaces: EntityManager" title="Interface in javax.persistence">EntityManager , EntityManager/clear" title="Method of javax.persistence