Generic repository for jpa entities