Added repositories and moved idPrefix and ID to base class