Home » Search

About TypedQuery

111-120 of 138 Refresh
Issue
1

InternalException when using MEMBER OF on a large list in a query

" + "WHERE property.uid MEMBER OF record.properties AND property.scopeID MEMBER OF ?1"; TypedQuery q
Forum
1

Is it possible get the All PrimKeys for a given entity class in the DB?

Hi, I would like to retrieve all the primKeys (user defined) by doing something like: TypedQuery query = em.createQuery("SELECT mif.primkey FROM MyClass mif", MyClassPrimKey.class); The only alternative I can think of - would be to store the primkey on the object
Forum
1

Is there any faster select method?

SELECT: TypedQuery query = em.createQuery(     "SELECT p FROM Point p WHERE p.id = " + element.getId(), Point.class); List points = query.getResultList(); WRITE: em.persist(p); ** the Point class is of the tutorial. I found the above select method is ten times slower
Forum
1

Issue with orphanRemoval and multiple EntityManagers

();         TypedQuery q3 = em.createQuery(             "select t from
Forum
1

java.lang.ClassCastException in query results

I have a simple object stored in a ObjectDb file Stadium Name (java.lang.String) Capacity (int) City (java.lang.String)   When i run the following code i get the ClassCastException in the "for (Stadium result : results)" line TypedQuery query = em.createQuery( "SELECT Name, Capacity
Forum
1

java.sql.Date equals comparison not working with CriteriaAPI

(myDate));         q.where(predicate);         TypedQuery query = em.createQuery(q
Forum
1

JPA - ExceptionInInitializerError when creating EntityManager

.EntityManagerFactoryImpl@ffa7e1 EntityManager emTemp = emf.createEntityManager(); TypedQuery
Forum
1

Mapped By Fetch is very Slow

();   Long start = new Date().getTime();     TypedQuery query = em.createQuery("SELECT m FROM
Forum
1

Memory consumption of empty Strings

entities;     TypedQuery query = entityManager.createQuery("SELECT myentity FROM
Forum
1

Memory leak with OutOfMemoryError exception

) {     EntityManager em = GO.emf.createEntityManager();      TypedQuery q = em.createQuery("SELECT