activefacts 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,6 +17,11 @@ module ActiveFacts
17
17
  one_to_one :aggregate # See Aggregate.aggregate_code
18
18
  end
19
19
 
20
+ class Annotation < String
21
+ value_type
22
+ has_one :concept, :counterpart => :mapping_annotation # See Concept.all_mapping_annotation
23
+ end
24
+
20
25
  class Assimilation < String
21
26
  value_type
22
27
  restrict 'absorbed', 'partitioned', 'separate'
@@ -85,6 +90,7 @@ module ActiveFacts
85
90
  class Name < String
86
91
  value_type :length => 64
87
92
  one_to_one :plural_named_unit, :class => "Unit", :counterpart => :plural_name # See Unit.plural_name
93
+ one_to_one :topic, :counterpart => :topic_name # See Topic.topic_name
88
94
  one_to_one :unit # See Unit.name
89
95
  one_to_one :vocabulary # See Vocabulary.name
90
96
  end
@@ -131,11 +137,6 @@ module ActiveFacts
131
137
  value_type :length => 256
132
138
  end
133
139
 
134
- class TopicName < Name
135
- value_type
136
- one_to_one :topic # See Topic.topic_name
137
- end
138
-
139
140
  class TransactionPhase < String
140
141
  value_type
141
142
  restrict 'assert', 'commit'
@@ -315,7 +316,7 @@ module ActiveFacts
315
316
 
316
317
  class Topic
317
318
  identified_by :topic_name
318
- one_to_one :topic_name, :mandatory => true # See TopicName.topic
319
+ one_to_one :topic_name, :class => Name, :mandatory => true # See Name.topic_as_topic_name
319
320
  end
320
321
 
321
322
  class Unit
@@ -543,18 +544,18 @@ module ActiveFacts
543
544
  one_to_one :value_constraint # See ValueConstraint.value_type
544
545
  end
545
546
 
546
- class Facet
547
+ class ValueTypeParameter
547
548
  identified_by :value_type, :name
548
- has_one :name, :mandatory => true # See Name.all_facet
549
- has_one :value_type, :mandatory => true # See ValueType.all_facet
550
- has_one :facet_value_type, :class => ValueType, :mandatory => true # See ValueType.all_facet_as_facet_value_type
549
+ has_one :name, :mandatory => true # See Name.all_value_type_parameter
550
+ has_one :value_type, :mandatory => true # See ValueType.all_value_type_parameter
551
+ has_one :facet_value_type, :class => ValueType, :mandatory => true # See ValueType.all_value_type_parameter_as_facet_value_type
551
552
  end
552
553
 
553
- class FacetRestriction
554
- identified_by :value_type, :facet
555
- has_one :facet, :mandatory => true # See Facet.all_facet_restriction
556
- has_one :value_type, :mandatory => true # See ValueType.all_facet_restriction
557
- has_one :value, :mandatory => true # See Value.all_facet_restriction
554
+ class ValueTypeParameterRestriction
555
+ identified_by :value_type, :value_type_parameter
556
+ has_one :value_type, :mandatory => true # See ValueType.all_value_type_parameter_restriction
557
+ has_one :value_type_parameter, :mandatory => true # See ValueTypeParameter.all_value_type_parameter_restriction
558
+ has_one :value, :mandatory => true # See Value.all_value_type_parameter_restriction
558
559
  end
559
560
 
560
561
  class ImplicitBooleanValueType < ValueType
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activefacts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clifford Heath
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-28 00:00:00.000000000 Z
11
+ date: 2015-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activefacts-api