snusnu / ramom

relational algebra meets object mapping
MIT License
6 stars 0 forks source link

Support field naming strategies #2

Closed snusnu closed 10 years ago

snusnu commented 10 years ago

Given the following mapper definition,

register :person do
  map :id,         from: :person_id
  map :account_id, from: :account_id
  map :name,       from: :person_name
end

it should be possible to write it like this:

register :person do
  map :id
  map :account_id, from: :account_id
  map :name
end
snusnu commented 10 years ago

The infrastructure in ramom/entity/* is in place. Next up is a custom NaturalJoin strategy provided by ramom/schema/*.