About setParameter

61-70 of 98Refresh
Issue
2

unclear syntax for update query

.setParameter(p, 100000).executeUpdate(); or with no identification variable at all:   Query query ... " +       "WHERE population < :p");   int updateCount = query.setParameter(p, 100000).executeUpdate(); it still does not
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