About setParameter

61-70 of 97Refresh
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
Forum
1

com.objectdb.o.InternalException: Unexpected internal exception

(Person.class); List pList = em.createNamedQuery("getPersonByName",Person.class).setParameter
Forum
1

createQuery method error

Hello, I am learning ObjectDB now. I create a simple Dao method as below:   public boolean isJobExist(String name) { TypedQuery query = em.createQuery( "SELECT count(j) FROM MFJob j WHERE j.jobName = :name", Long.class); return query.setParameter("name", name
Forum
1

Failed to read DB file while online backup is running

);   backupQuery.setParameter("target", database.getBackupDirectory());   Thread backupThread = backupQuery
Issue
1

Feature Request: Subclassed PersistenceException for Type Not Found in DB Schema

);         query.setParameter("chain", Integer.parseInt(chain));         try {             storeList
Forum
1

Finding an object by its datetime

", Booking.class) .setParameter("btime", btime, TemporalType.TIMESTAMP); } @Entity public
Forum
1

Help with 'not like/lower' query

.createQuery(c);         query.setParameter(stringProp, "test");             List resultList
Forum
1

IN operator syntax

query = em.createQuery("SELECT FROM MyEntity e WHERE e.num IN :list");     query.setParameter("list
Issue
1

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

= em.createQuery(query, String.class); q.setParameter(1, scopeIDs); //scopeIDs is a Set