activefacts 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/CQL/Metamodel.cql +37 -40
- data/lib/activefacts/cql/ObjectTypes.treetop +14 -4
- data/lib/activefacts/cql/compiler/entity_type.rb +7 -2
- data/lib/activefacts/cql/compiler/fact_type.rb +3 -3
- data/lib/activefacts/cql/compiler/value_type.rb +4 -1
- data/lib/activefacts/generate/sql/server.rb +2 -1
- data/lib/activefacts/generate/transform/surrogate.rb +156 -156
- data/lib/activefacts/persistence/tables.rb +1 -1
- data/lib/activefacts/version.rb +1 -1
- data/lib/activefacts/vocabulary/extensions.rb +262 -261
- data/lib/activefacts/vocabulary/metamodel.rb +16 -15
- metadata +2 -2
@@ -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
|
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
|
547
|
+
class ValueTypeParameter
|
547
548
|
identified_by :value_type, :name
|
548
|
-
has_one :name, :mandatory => true # See Name.
|
549
|
-
has_one :value_type, :mandatory => true # See ValueType.
|
550
|
-
has_one :facet_value_type, :class => ValueType, :mandatory => true # See ValueType.
|
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
|
554
|
-
identified_by :value_type, :
|
555
|
-
has_one :
|
556
|
-
has_one :
|
557
|
-
has_one :value, :mandatory => true # See Value.
|
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.
|
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-
|
11
|
+
date: 2015-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activefacts-api
|