updating the pojoquerydefinition