Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-313

Support for value objects

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Would be great with support for (embedded) value objects in Mongoid. Examples of common value objects would be temperature (degrees + scale), money (amount, currency), address (street, city, country), etc.

      The major difference would be that value objects don't have any ids. Comparison and a few other aspects are also different.

      Reference:
      http://api.rubyonrails.org/classes/ActiveRecord/Aggregations/ClassMethods.html#method-i-composed_of
      http://martinfowler.com/eaaCatalog/valueObject.html

            Assignee:
            Unassigned Unassigned
            Reporter:
            sandstrom sandstrom
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: