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

elasticsearch - what is the equivalent data type for geo_point in hibernate search? -

powershell - Invoke-WebRequest fails for a large file -

firebase - How to wait value in Ionic 2 -