Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

RepositoriesExample

A very small example of DDD's repository pattern in Ruby.

It separates the responsibility of persistence and business rules, avoiding fat models.

In big applications, those concerns should be separated.

Layers

  • Entities: Business objects (without any persistence rule or DB acccess - PORO)
  • Repositories: Responsible to communicate with data sources and to convert the resulting info into business entities
    • DTOs: Responsible to connect to the DB and to have the persistence rules
    • Mappers: Responsible to map business entities into DTOs and vice-versa

Console

$ script/console

About

A very simple example of DDD's repository pattern in Ruby.

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.