ASSOCIATE-REACTIVE-DEVELOPER practice question 7 of 35

Entity Identifiers can be simple primary keys or composite keys

Full set: 262 questions
Answer options
A: TRUE Correct answer
B: FALSE
Correct Answer:
F; A. TRUE; L; S; E
Explanation

The statement is false. In OutSystems, every entity must have a primary key, which is referred to as the Entity Identifier. This identifier is always a single attribute and cannot be a composite key (a key composed of multiple attributes). When a new entity is created, OutSystems automatically generates a unique, single-attribute identifier (typically Id with a Long Integer data type), which serves as its primary key. While you can change the data type of this identifier, you cannot configure it to be a composite key.

Why Incorrect

The "True" option is incorrect because it contradicts the core data modeling architecture of the OutSystems platform. OutSystems enforces the use of a single-attribute primary key for all entities created within its environment to ensure consistency, simplify relationships, and optimize performance for its internal data handling mechanisms. The platform does not provide a feature to create or define composite primary keys for its entities.

References

1. OutSystems Official Documentation - "Entity identifier": This document explicitly states the nature of entity identifiers.

Quote: "Each entity has an identifier that uniquely identifies each record. The identifier is a single attribute and it's the entity's primary key."

Reference: OutSystems. (n.d.). Entity identifier. OutSystems Documentation. Retrieved from https://success.outsystems.com/documentation/11/reference/outsystemslanguage/data/databasereference/entityidentifier/

2. OutSystems Official Documentation - "Create an Entity": This guide on creating entities reinforces the automatic creation of a single identifier.

Quote: "When you create an entity, Service Studio automatically adds an attribute to be the entity identifier. By default, the attribute is named Id and its data type is set to Long Integer with the Is AutoNumber property set to Yes."

Reference: OutSystems. (n.d.). Create an Entity. OutSystems Documentation. Retrieved from https://success.outsystems.com/documentation/11/developinganapplication/usedata/datamodeling/createanentity/

3. OutSystems Training Courseware - "Modeling Data": The official training materials for developers consistently describe the data model as using single-attribute identifiers.

Concept: In the "Data Model" section of the "Developing OutSystems Web Applications" (and Reactive) courses, entities are always presented with a singular Id attribute as the primary key, with no mention or provision for composite keys.

Reference: OutSystems. (n.d.). Modeling Data [Guided Path]. OutSystems Training. Retrieved from https://www.outsystems.com/training/paths/18/becoming-a-reactive-web-developer/ (Content within the "Data Modeling" section).

Scroll to Top