About TypedQuery

81-90 of 139Refresh
Forum
1

Need help to make this test work and define proper annotations for entities Lists

javax.persistence.Id; import javax.persistence.Persistence; import javax.persistence.TypedQuery ... .createEntityManager();             TypedQuery query = em.createQuery("SELECT ord FROM
Issue
1

NullPointer on query

I'm getting a null pointer when running the following code: TypedQuery query = em.createQuery("SELECT m FROM ObjectDbMessagePayload m WHERE m.id = :id ... anything, try again with a query TypedQuery query = em.createQuery
Forum
1

openejb jpa jaas module

.persistence.Persistence; import javax.persistence.TypedQuery; import javax.security.auth.Subject; import ... (); final int id = info.getId(); final TypedQuery namedQuery = entityManager
Forum
1

Performance problem

(); int i = 0;     while(i < 40){     TypedQuery queryAkt =     em.createQuery ... = System.currentTimeMillis(); int i = 0;     while(i < 60){     TypedQuery queryAkt
Forum
1

Possible issue with timestamps

().commit();              TypedQuery query = em.createQuery("SELECT count(c) FROM CDI c", Long ... ());                 TypedQuery query2 = em.createQuery("SELECT c FROM CDI c where c.creationDate > {ts '2012-03-29
Forum
1

Query all objects that implements a given interface - is that possible?

Hi, I am trying query one of my DB - for all object types that implement a given interface.     TypedQuery query =         em.createQuery("SELECT bk FROM Signal_Interface bk ... Signals.Signal_Interface Try:     TypedQuery query =         em.createQuery("SELECT
Forum
1

Speed of queries that return many objects

();             TypedQuery query = em.createQuery("SELECT a FROM BenchEnt a", BenchEnt.class ... lazily then the query can return results much faster:     TypedQuery query = em.createQuery
Forum
1

Threading Problem (maybe with Criteria)

250 GB Samsung SSD 840 Series Media No error using SQL String statement TypedQueryTypedQuery query= manager.createQuery(cquery); best regards Arne Thank
Forum
1

Updating Entities

); TypedQuery query = Main.paygradeDB.createQuery("SELECT FROM Paygrade ORDER BY rate", Paygrade.class); TypedQuery modifyTo = Main.paygradeDB.createQuery("UPDATE Paygrade SET rate
Forum
1

Using the wrong class to access a database

.getSingleResult()); // 3 get all points TypedQuery query = em.createQuery("SELECT p FROM ... ) { TypedQuery query = em.createQuery("SELECT p FROM Point p", Point.class); List results