Module: Vorpal

Extended by:
Dsl::Configuration
Defined in:
lib/vorpal.rb,
lib/vorpal/engine.rb,
lib/vorpal/configs.rb,
lib/vorpal/version.rb,
lib/vorpal/db_loader.rb,
lib/vorpal/exceptions.rb,
lib/vorpal/identity_map.rb,
lib/vorpal/loaded_objects.rb,
lib/vorpal/aggregate_utils.rb,
lib/vorpal/util/array_hash.rb,
lib/vorpal/aggregate_mapper.rb,
lib/vorpal/driver/postgresql.rb,
lib/vorpal/dsl/configuration.rb,
lib/vorpal/util/string_utils.rb,
lib/vorpal/dsl/config_builder.rb,
lib/vorpal/aggregate_traversal.rb,
lib/vorpal/dsl/defaults_generator.rb,
lib/vorpal/util/hash_initialization.rb

Overview

Allows easy creation of Engine instances.

engine = Vorpal.define do
  map Tree do
    attributes :name
    belongs_to :trunk
    has_many :branches
  end

  map Trunk do
    attributes :length
    has_one :tree
  end

  map Branch do
    attributes :length
    belongs_to :tree
  end
end

mapper = engine.mapper_for(Tree)

Defined Under Namespace

Modules: Driver, Dsl, Util Classes: AggregateMapper, ConfigurationNotFound, Engine, IdentityMap, InvalidAggregateRoot, InvalidPrimaryKeyValue

Constant Summary collapse

VERSION =
"1.0.1"

Method Summary

Methods included from Dsl::Configuration

define, map