About class

171-180 of 200Refresh
Manual
6

Query Parameters in JPA [2011-04-01]

( "SELECT c FROM Country c WHERE c.name = :name", Country.class); return query.setParameter ... .createQuery( "SELECT c FROM Country c WHERE c.name = ?1", Country.class); return query ... + "'", Country.class); return query.getSingleResult(); } Instead of using a parameter
Manual
6

Query Parameters in JPA

( "SELECT c FROM Country c WHERE c.name = :name", Country.class); return query.setParameter ... .createQuery( "SELECT c FROM Country c WHERE c.name = ?1", Country.class); return query ... + "'", Country.class); return query.getSingleResult(); } Instead of using a parameter
JPA Doc
5

javax.persistence.EntityManager

instance is defined by a persistence unit. A persistence unit defines the set of all classes ... string is found to be invalid Since: JPA 1.0 TypedQuery createNamedQuery(String name, ClassClass resultClass) Create an instance
JPA Doc
5

javax.persistence.metamodel.EntityType

the attributes of the managed type. Returns: attributes of the managed type Since: JPA 2.0 Class getCollection(String name, Class elementType) Return ... (String name, Class elementType) Return the Collection-valued attribute declared by the managed
JDO Doc
5

javax.jdo.annotations.PersistenceCapable

javax.jdo.annotations Annotation PersistenceCapable Target: Classes Annotation for whether the class or interface is persistence-capable. Since: JDO 2.1 String cacheable Whether this class is cacheable in a Level2 cache. Whether this class is cacheable in a Level2 cache. Default value: "true
Manual
5

GROUP BY and HAVING clauses

q = cb.createQuery(Country.class); Root c = q.from(Country.class); q.multiselect(c
Tutorial
5

Step 1: Create a Maven Web Project

>        enhance        process-classes                javaclass.
Manual
5

DELETE Queries in JPA/JPQL

of a DELETE query removes all the instances of a specified entity class (including instances ... .Object class in queries (as an extension to JPA), so the following query can be used to delete
FAQ
5

What is the Java Persistence API (JPA)?

) is that in JPA data is represented by classes and objects rather than by tables and records as in JDBC ... the relational database (as tables and records) and the representation in the Java application (as classes
Manual
5

ORDER BY clause (JPQL / Criteria API)

follows: CriteriaQuery q = cb.createQuery(Country.class); Root c = q.from(Country.class); q.select(c); q.orderBy(cb.asc(c.get("currency")), cb.desc(c.get("population