models.autoRealization.Tests.M2.LinkSpec.LinkSpec_IncludeAutoLinkableToOR.yaml Maven / Gradle / Ivy
$schema: ../../../../../../com.modelsolv.reprezen.realization/schema/auto-realization-config-schema.json
_type: RealizationModel
name: LinkSpec_IncludeAutoLinkableToOR
_documentation: |
* Root objects will have key properties, and _only_ references to data types that
* have an auto-link objectResource.
* Reference objects will have only key properties, and will have objectResource auto-links.
realizationRules:
RootObjects:
_type: RealizationRule
namingPattern: ${TypeName}_Root
appliesTo:
- _type: ContextPattern
level:
_type: RootObjectContext
realization:
_type: ObjectRealizationSpec
propertySet:
_type: ExclusivePropertySet
includedProperties:
- _type: PropertyRealization
propertyType:
_type: PrimitivePropertyRealization
isKey: true
- _type: PropertyRealization
propertyType:
_type: ReferencePropertyRealization
autoLinkableToObjectResource: true
References:
_type: RealizationRule
namingPattern: ${TypeName}_Ref
appliesTo:
- _type: ContextPattern
level:
_type: ReferencePropertyContext
autoLinkableToObjectResource: true
realization:
_type: ObjectRealizationSpec
propertySet:
_type: ExclusivePropertySet
includedProperties:
- _type: PropertyRealization
propertyType:
_type: PrimitivePropertyRealization
isKey: true
links:
- strategy: specification
linkRelation: detail
targetResourceType: AUTO_LINK_OBJECT_RESOURCE