About ENABLE_SELECTIVE

61-70 of 200Refresh
Issue
6

NullpointerException at a normal select

When I run the following code: EntityManager em = getEm(); Customer result = null; try {     logger.debug("Ident: "+ident);     result = em.createQuery("Select c from Customer c where c.identifier=:id", Customer.class).setParameter("id", ident).getSingleResult(); } catch (javax.persistence
Forum
6

Performance in SELECT statement

has around 30.000 rows) Example query looks like : String strSelect = "SELECT e FROM TestEntity
Forum
5

Class fields selection to store

Class fields selection to store
Forum
5

Selective merge/cascade of detatched entity

Selective merge/cascade of detatched entity
Manual
5

BIRT/ODA ObjectDB Driver

extension. To install it: Open the [Install] dialog box by selecting Help > Install New Software... In ... ENTER. Select the ObjectDB Birt/ODA feature. Complete the installation by clicking Next twice, accepting ... and selecting New Data Source. Select ObjectDB Data Source from the list of available data source types
Manual
5

JPA Named Queries

="SELECT c FROM Country c") The @NamedQuery annotation contains four elements ... class. But since the scope of named queries is the entire persistence unit, names should be selected ... ", query="SELECT c FROM Country c") public class Country { ... } Attaching multiple named
Manual
5

CRUD Database Operations with JPA [2011-02-11]

objects in the database by using a simple query: Query q1 = em.createQuery("SELECT COUNT(p) FROM Point p"); System.out.println("Total Points: " + q1.getSingleResult()); The query string ("SELECT ... of a query that returns a single result: Query q2 = em.createQuery("SELECT AVG(p.x) FROM Point p
Manual
5

CRUD Database Operations with JPA

objects in the database by using a simple query: Query q1 = em.createQuery("SELECT COUNT(p) FROM Point p"); System.out.println("Total Points: " + q1.getSingleResult()); The query string ("SELECT ... of a query that returns a single result: Query q2 = em.createQuery("SELECT AVG(p.x) FROM Point p
Manual
5

Running JPA Queries [2011-09-21]

The Query interface defines two methods for running SELECT queries: Query.getSingleResult - for use ... query = em.createQuery("SELECT c FROM Country c", Country.class); ListSELECT c FROM Country c"); List results = query
Manual
5

Running JPA Queries

The Query interface defines two methods for running SELECT queries: Query.getSingleResult - for use ... query = em.createQuery("SELECT c FROM Country c", Country.class); ListSELECT c FROM Country c"); List results = query