About setParameter

91-98 of 98Refresh
Forum
1

TYPE Expression

.createQuery("SELECT From A a WHERE TYPE(a)=:type");         query.setParameter("type", A.class
Issue
1

type in http://www.objectdb.com/java/jpa/query/criteria serParameter -> setParamether

type in http://www.objectdb.com/java/jpa/query/criteria serParameter -> setParamether Thanks. It was fixed now to setParameter. ravshansbox
Forum
1

user defined backup target

Dear objectdb Team 1. I could not find a way, to declare the name of the backup-file (while running the database).  The only way I found is to create the folder in which objectdb will copy the database - file: Query backupQuery = em.createQuery("objectdb backup"); backupQuery.setParameter
Forum
1

Visibility of changes in Transaction is not visible to a JPA QL Query

.setParameter("cachedKey", Integer.toString(which));   return q.getSingleResult
Issue
1

Wrong type on SUM function

Hello, I have a problem when I run this aggregation query: Query q = em.createQuery(         "SELECT cc.totalCC.moneda, SUM(cc.totalCC.importe) FROM ComprobanteContable cc " +         "WHERE cc.cuenta=:cuenta GROUP BY cc.totalCC.moneda"); List resultList = q.setParameter("cuenta
Forum
1

IN expression in a Criteria Query

=             em.createQuery("SELECT e FROM MyEntity e WHERE e.str IN (:bindVar)");         query.setParameter
Forum
1

Query can't see recently persisted object

.setParameter("oid", oid); if ("-62e6083d:1612795a01c:-6e65".equals(oid)) { logger.debug
Forum
1

fetch by enum

I have Entity named Fruits  with a column Type which is a enum. I want to fetch the based on Type  Eg.  Query qry= em.createQuery("Select f from Fruits f where f.Type =: t ");         qry.setParameter("t",Type.Sweet);   But it return a null result list.   It should work. Please provide a minimal