Home » Search

About setParameter

51-60 of 94Refresh
Issue
2

NullPointer on query

", ObjectDbMessagePayload.class); query.setParameter("id", msg.getId()); List loaded = query ... ); query.setParameter("id", msg.getId()); List loaded = query
Forum
2

Order in WHERE Clause affects behaviour on DATE/DATETIME columns

:query OR m.myText LIKE :query"); q.setParameter("query", "%myQuery%"); I ... :query"); q.setParameter("query", "%myQuery%"); I don't get any error! The order
Forum
2

possible index required for improving query performance

=RelationshipType."+type.toString(), BaseObject.class); query.setParameter("otherParty_id", otherParty); query.setParameter("pclass", partyClass); We have noticed that this query slows down in
Forum
2

Problem with Criteria Querys

.createQuery(q);   query.setParameter(p1, 100.0);   query.setParameter(p2, 150.0);   List resultList
Forum
2

Sorting problem

BY ?1 DESC";     icQuery = em.createQuery(q, Branch.class);     icQuery.setParameter(1, "br.id ... , the following query is invalid:     Query query = em.createQuery(":query");     query.setParameter("query
Forum
2

Object as parameter results in exception

= getEntityManager().createQuery(c);   q.setParameter(idParam, primaryKey);   q.setParameter(companyParam, company
Forum
2

zip file or JAR manifest missing

.taskid=?1 and i.itemname = ?2"; Query q2 = em.createQuery(sQ2); q2.setParameter(1, iTask); q2.setParameter(2, sName); ItemList item = null; try { item = (ItemList)q2.getSingleResult
Forum
2

java 8 LocalDateTime is not working in query

ORDER BY t.date"); query.setParameter("startDate", LocalDateTime.now()); query.setParameter("endDate", LocalDateTime.now().plusDays(1)); above code returns empty list   but it's working fine
Issue
1

Blocked by find

DataHolder d WHERE d.containerId = :containerId"); query.setParameter("containerId", containerId
Forum
1

Cast exception?

I'm getting a weird exception: java.lang.ClassCastException: database.entity.Player cannot be cast to database.entity.Player From just fetching a single result: TypedQuery query = em.createNamedQuery("Player.getPlayer", Player.class); Player player = query.setParameter("id", uid