Home » Search

About find

31-40 of 200Refresh
Manual
11

Shared (L2) Entity Cache

and primary key: em.find(MyEntity2.class, Long.valueOf(1),      Collections.find(MyEntity2.class
Tutorial
11

Step 3: Add a Main Class

(); // Find the number of Point objects in the database: Query q1 = em.createQuery("SELECT COUNT(p ... ()); // Find the average X value: Query q2 = em.createQuery("SELECT AVG(p.x) FROM Point p
Tutorial
11

Step 3: Add a Main Class

); } em.getTransaction().commit(); // Find the number of Point objects in the database ... Points: " + q1.getSingleResult()); // Find the average X value: Query q2 = em
Manual
11

Updating JPA Entity Objects

from inside an active transaction: Employee employee = em.find(Employee.class, 1); em ... changes when using enhanced entity classes: Employee employee = em.find(Employee.class, 1
JPA Doc
9

javax.persistence.EntityManager

. The EntityManager API is used to create and remove persistent entity instances, to find entities by their primary ... instance Throws: IllegalArgumentException - if the instance is not an entity Since: JPA 2.0 T find(Class entityClass, Object primaryKey) Find by primary key. Find by primary key. Search for an entity
Manual
8

Chapter 4 - JPA Queries (JPQL / Criteria)

The JPA Query Language (JPQL) can be considered as an object oriented version of SQL. Users familiar with SQL should find JPQL very easy to learn and use. This chapter explains how to use JPQL as well as how to use the JPA Criteria API, which provides an alternative way for building queries in JPA
Manual
8

Deleting JPA Entity Objects

transaction, it can be deleted using the remove method: Employee employee = em.find(Employee.class, 1
FAQ
8

Is ObjectDB better than competing object databases?

of two standard APIs (JPA and JDO) by ObjectDB minimizes the risk that during development you may find
Manual
8

Setting and Tuning of JPA Queries

simple JPA operations, such as find. However, query execution is much more complex
Tutorial
8

Step 7: Run the Spring Web App

enhancement (weaving) in Tomcat: Find the Tomcat server in the [Services window] under Servers. Right