add findByAnd function to repository