Entity repository implementation