Domain Model Flashcards

1
Q

What alternative to drawing an association between two entities can you use to connect two entities, each located in a separate domain model?

A

By right-clicking in an entity and selecting Add>Association.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an easy way to limit access rights for a given role to a specific functionality within an app?

A

By adding a separate module.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why don’t we use entities from the Administration module?

A

Because it is a Marketplace module, so it’s best not to alter the module itself. They can be updated at anytime, and all your changes to this module will be replaced.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why don’t we use entities from the System module?

A

Because the access rights of the System module can’t be changed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can we use the Entities from the Administration and System modules?

A

By creating specialized entities inside of our App Domain Model using generalization .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Can a user have more than 1 UserRole?

A

By default, yes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a good reason to choose to use an Information Entity instead of multiple associations?

  1. You want it to be clear that only one object can have a specific qualification.
    2.You want clear Entity names.
    3.You want to optimize the app’s performance.
  2. You want to display additional information about an association.
A
  1. You want to display additional information about an association
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Can be Non-persistable entities be saved in the database?

A

No, non-persistable entities can’t be saved inside of the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens when you commit non-persistable entities?

A

The current attribute values and association values get stored in memory, not in the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What happens to values saved in memory at the end of the session(person stops using the application)?

A

All of it will be deleted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a transient object?

A

An object that only exists in memory and not in the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Associations between persistable and non-persistable entities.

On which side should the ownership be?

A

The ownership (the side with the dot) should always lie on the side of the non-persistable entity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

You can use validation rules with non-persistable entities

true
false

A

false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

You can use indexes with non-persistable entities

true
false

A

false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why would you use non-persistable entities in Mendix applications?

A

Non-persistable entities are used in Mendix applications for data that should not be stored in the database. This can be because the data is related to a specific transaction (process data) or contains sensitive information that, by law, cannot be stored in the database. Non-persistable entities ensure that such data cannot be committed to the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the potential issue with not using non-persistable entities and choosing not to commit a persistable entity instead?

A

Choosing not to commit a persistable entity can lead to issues because it’s easy to forget to not commit it, which could result in unwanted data ending up in the database. Additionally, not using non-persistable entities when needed can result in the creation of unnecessary database tables, which can clutter the database and impact performance.

17
Q

You connected two entities by a cross-module association. You want Studio Pro to take you to the associated entity in the other module - which option do you need to choose when you right click the association?

  1. Go to the other module
  2. Go to the other side
  3. Go to the associated entity
  4. Go to the other domain model
A
  1. Go to the other side
18
Q

Which of the following options list system members that can be stored as indicated in the properties of an entity?

  1. Created Date, Modified Date, Creator, ModifiedBy
  2. Created Date, Changed Date, Owner, ChangedBy
  3. Created Date, Shifted Date, Originator, ModifiedBy
  4. Created Date, Altered Date, Initiator, ChangedBy
A
  1. CreatedDate, ChangedDate, Owner, ChangedBy.