Added the paginator and fixed the persistence.xml