I use javascript (angullar) with following:
queryBuilder.setWhereClause('active=true');
RetailerDao.findById<Retailer>(objIdRetailer, queryBuilder)
The result is object with active=false.
The findById function does not respect Where clause.
I use javascript (angullar) with following:
queryBuilder.setWhereClause('active=true');
RetailerDao.findById<Retailer>(objIdRetailer, queryBuilder)
The result is object with active=false.
The findById function does not respect Where clause.
Hello @Martin_Krajcir1
Actually, the method’s name findById
means to find an object by its objectId
.
In order to find object(s) by whereClause
you have to use find
method and use the following query: objectId = 'objIdRetailer' and active=true
Regards, Vlad