Added abstract Entity, changed repository's methods order