...

/

Responsibilities of a Persistence Adapter

Responsibilities of a Persistence Adapter

Learn what a persistence adapter is and its responsibilities.

Persistence adapter

This is what a persistence adapter usually does:

  1. Takes input
  2. Maps input into database format
  3. Sends input to the database
  4. Maps database output into application format
  5. Returns output

Take input

The persistence adapter takes input through a port interface. The input model may be a domain entity or an ...