About TypedQuery

81-90 of 146Refresh
Issue
1

InternalException

. If it helps this is the query that was causing it: TypedQuery q1 = em.createQuery ... though, also other simple Guest retrieval queries worked fine as well: TypedQuery q1 = em
Forum
1

java.lang.ClassCastException: CriteriaQueryImpl cannot be cast to java.util.List

query building operations), not results. To execute the query you have to create a TypedQuery (or ... :     criteriaQuery.select(root);     TypedQuery query = em.createQuery(criteriaQuery);     allPersons
Forum
1

Join query problem with new statetment

Hi, I'm trying to implement some reporting logic in my application and got nasty exception when using query with join. The query code is: TypedQuery inspirationQuery ... don't think it was ever changed. I've changed this query to: TypedQuery
Forum
1

JPQL keyword in entity - what to do?

] at java.lang.Thread.run(Thread.java:619) ~[na:1.6.0_23] when using query like this: TypedQuery ... and got another exception after modification to this form: TypedQuery q = em
Forum
1

Listing large number of complicated objects with paging.

. The problem is, that running code that looks like this: TypedQuery icQuery = em.em ... ().commit();         TypedQuery query = em.createQuery(             "select e from
Forum
1

Merge with Parent/Child entities not possible

.Persistence; import javax.persistence.TypedQuery; import org.junit.After; import org.junit.Assert ... (entityManager); } @Test public void test() {   TypedQuery parentEntityQuery
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