updates Entitiy creation to conform with the new EntityConfig and Id classes