About TypedQuery

81-90 of 143Refresh
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
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