[ENTITIES]
Use the [ENTITIES] section of the assignment file to direct individual entities to a path, give the target database table a different name than the name of the entity, or specify the physical file name for database tables for record-level databases.
Syntax
Entity-to-path assignment, where the path leads to a network connector:
Entity {=
}
$PathToNetwork:
Entity
Entity-to-path assignment, where the path leads to a database connector:
Entity {=
}
$PathToDatabase:
Table.*
Entity-to-path assignment, where the path leads to a record-level database connector:
Entity {=
}
FileName.*
For example:
[ENTITIES] *.ACMECUST $TCP1:*.ACMECUST *.ACMEORDERS $TCP2:*.ACMEORDERS
Arguments
- Entity—entity name used by
Uniface. The name may be fully qualified in the format
EntityName.ModelName
. Wildcards are allowed in both the Entity and Model parts of the name. - $PathToNetwork—name of a path that leads to a network connector.
- $PathToDatabase—name of a path that leads to a field-level database connector.
- Table—table name used by the database. For every wildcard in Entity and/or ApplicationModel, a corresponding wildcard in Table must be provided.
- FileName—physical file name (including path) of the table for record-level databases. For every wildcard in Entity and/or Model, a corresponding wildcard in FileName must be provided.
[ENTITIES]
The following example assignment file redirects entities, based on the model name, to different network paths:
[ENTITIES] *.model1 = $tcp1:*.model1 *.model2 = $tcp2:*.model2
The following example assignment file redirects entities, based on the model name, to different tables in the database:
[ENTITIES] *.model1 = $mss:model1_*.* *.model2 = $mss:model2_*.*
The following example assignment file redirects entities, based on the model name, to tables of a record-level database that are stored in different directories:
[ENTITIES] *.model1 = seqdatabase\model1\*.* *.model2 = seqdatabase\model2\*.*