All challenges
Multiple ChoiceIntermediate 45s

Repository vs DAO

Which statement best separates Repository from a raw DAO?
Options
  1. 1Repository speaks in domain terms (aggregates) and hides persistence; DAO exposes table/row CRUD
  2. 2Repository returns raw table rows to callers. DAO returns fully hydrated domain aggregates.
  3. 3They are exact synonyms. The choice between the names is purely stylistic. No behavioral difference separates them.
  4. 4Repository must be genericized over an entity type. Without the type parameter it cannot be used.

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle