Sha256: 4558783960ae0c1c31922d27a915e348e500dff851b04958f91c23dfb5a951e5

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

module Family
  class Parent
    # The SSN is a secondary key
    property :ssn, :secondary_key
    
    # A parent owns children.
    property :children, :dependent
    
    # The spouse is an independent reference. The spouse is an idempotent inverse,
    # i.e. parent = parent.spouse.spouse.
    property :spouse, :inverse => :spouse
    
    # The household is an independent reference with inverse members.
    property :household, :inverse => :members
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jinx-2.1.4 examples/family/lib/family/parent.rb
jinx-2.1.3 examples/family/lib/family/parent.rb
jinx-2.1.2 examples/family/lib/family/parent.rb
jinx-2.1.1 examples/family/lib/family/parent.rb