Entities and the Repository API should not dictate which persistence method is used under the covers.