Skip to content
simcha edited this page Sep 13, 2010 · 7 revisions

Mappum

Mappum is the tree to tree (object, bean etc.) mapping DSL. The example of usage
is provided below. More documentation will follow.

Subprojects

  1. Mappum Gui — our Eclipse plugin (source, downloads)
  2. Mappum Servicemix — JBI componet (source, downloads)
  3. Mappum Mule — Mule ESB componet (source, downloads)

Example


Mappum.catalogue_add do

  map ERP::Person, CRM::Client do |p, c|

    #simple mapping
    map p.title <=> c.title
    map p.name <=> c.client_name
    map p.surname <=> c.client_surname

  end
end

Full syntax can be seen in MapExample.

See how to use the library:

Clone this wiki locally