added entity interface and Paginator