Home » Search

About class

171-180 of 200Refresh
JPA Doc
6

JPA Metamodel API

The JPA Metamodel API, which is introduced in JPA 2.0, enables examining the classes, fields and properties of the persistent object model, similarly to the Java reflection API. The main interface of the JPA Metamodel API is: Types (mainly classes) and attributes (persistent field and properties
Manual
6

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
Manual
6

Running JPA Queries

query = em.createQuery("SELECT c FROM Country c", Country.class); Listclass); long countryCount = query
Tutorial
6

Step 1: Create a Maven Web Project

>        enhance        process-classes                javaclass.
Tutorial
6

Step 1: Create a Maven Web Project

>enhance        process-classes                javaclass.
Manual
6

Strings in JPQL and Criteria Queries

'.toLowerCase() is evaluated to 'poland'. The matches method of the String class can be useful ... > param = cb.parameter(String.class); // str [NOT] LIKE pattern Predicate l1 = cb.like(path
FAQ
6

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
6

Working with JPA Entity Objects

Entity objects are in-memory instances of entity classes (persistable user defined classes), which can represent physical objects in the database. Managing an ObjectDB Object Database using JPA requires using entity objects for many operations, including storing, retrieving, updating and deleting
Manual
6

CRUD Database Operations with JPA

=  em.createQuery("SELECT p FROM Point p", Point.class); List results = query ... = em.createQuery("SELECT p FROM Point p", Point.class); List results = query.getResultList
JPA Doc
6

javax.persistence.metamodel.IdentifiableType

Since: JPA 2.0 CollectionAttribute getCollection(String name, Class elementType) Return ... (String name, Class elementType) Return the Collection-valued attribute declared by the managed type ... Since: JPA 2.0 SingularAttribute getDeclaredId(Class type) Return the attribute that corresponds