Home » Search

About TypedQuery

71-80 of 139Refresh
Forum
1

Eager Fetch is not stable for collection or map types?

(long id) {    EntityManager em = emf.createEntityManager();    try {     TypedQuery query = em ... .createEntityManager(); try { TypedQuery query = em.createQuery("select k from Game k where k.id=:id
Forum
1

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

();   }   // Retrieve all the Point objects from the database:   TypedQuery query = em.createQuery ... :   TypedQuery query = em.createQuery("SELECT p FROM Point p",     Point.class);   List
Forum
1

Field in Generic Class not persisted?

.Persistence; import javax.persistence.TypedQuery; import org.apache.commons.lang3 ... ();         em.clear();         TypedQuery q = em.createQuery("SELECT h FROM OBJ6 h", OBJ6.class
Forum
1

Help with 'not like/lower' query

.EntityManagerFactory; import javax.persistence.Persistence; import javax.persistence.TypedQuery ... .where(builder.like(builder.lower(path), stringProp));           TypedQuery query = em
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