consider all types of join relationship for decision about pagination count determination approach in repository class