Gemfire - Crud Repository - findBy Implementation -




we using single gemfire cluster non production environment , geting regionname dynamically using @resources. use need override crud operation. got struck implementation logic findbyfirstnameandlastname(string firstname,string lastname).

can share actual implementation of findby in crudrepository.

appreciate help.

public list<user> findbyfirstname(string firtstname) throws queryexception {               list<user> user = new arraylist<>();               try {                      selectresults<user> results = (selectresults) userregion                                   .query("select * /" + userregion.getname() + " d d.firtstname='" + firtstname+"'");                      user.addall(results);               } catch (functiondomainexception | typemismatchexception | nameresolutionexception                            | queryinvocationtargetexception e) {                      throw e;               }               return user;        } 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -