activefacts-metamodel 1.9.15 → 1.9.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activefacts/metamodel/extensions.rb +11 -1
- data/lib/activefacts/metamodel/version.rb +1 -1
- data/lib/activefacts/support.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1d9c5bd4adc1eb2615d7f203dbbbb7f4c55a3f7
|
4
|
+
data.tar.gz: 1ee14b0cb2c13872a6428838839ca5aab29fe44f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c27e410c1bdae1e36295a0b55dd7dabdd8b4024267feef22f5199fb980b403abe1f6295738d7bc5fc3f83e5465a16342eaa63b346363befb70b4fcc7972640ab
|
7
|
+
data.tar.gz: c71a23df4be55c450debded206c214435a972a6815fc1a51fb81cee9a9e7301dac5954b9f7cf9a210349812f3f95890822bcc3bc8653f29d86be3cc71d31e4c3
|
@@ -478,9 +478,14 @@ module ActiveFacts
|
|
478
478
|
attr_reader :injected_surrogate_role
|
479
479
|
|
480
480
|
def is_separate
|
481
|
+
# Independent object types and Entity Types marked separate
|
481
482
|
is_independent or concept.all_concept_annotation.detect{|ca| ca.mapping_annotation == 'separate'}
|
482
483
|
end
|
483
484
|
|
485
|
+
def is_partitioned
|
486
|
+
false
|
487
|
+
end
|
488
|
+
|
484
489
|
def is_static
|
485
490
|
concept.all_concept_annotation.detect{|ca| ca.mapping_annotation == 'static'}
|
486
491
|
end
|
@@ -533,13 +538,18 @@ module ActiveFacts
|
|
533
538
|
end
|
534
539
|
|
535
540
|
def assimilation
|
536
|
-
ti =
|
541
|
+
ti = all_type_inheritance_as_subtype.map(&:assimilation).compact[0]
|
537
542
|
end
|
538
543
|
|
539
544
|
def is_separate
|
545
|
+
# Independent Object Types, Entity Types marked separate and TypeInheritance marked not absorbed
|
540
546
|
super || !['absorbed', nil].include?(assimilation)
|
541
547
|
end
|
542
548
|
|
549
|
+
def is_partitioned
|
550
|
+
assimilation == 'partitioned'
|
551
|
+
end
|
552
|
+
|
543
553
|
def preferred_identifier
|
544
554
|
return @preferred_identifier if @preferred_identifier
|
545
555
|
if fact_type
|
data/lib/activefacts/support.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activefacts-metamodel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clifford Heath
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|