Data entity metadata files
You define data entities through XML elements in the entity metadata definition files. The root element of an entity definition specifies the kind of entity and any attributes that apply. Subelements of the entity element define entity components, such as columns, or fields, and foreign keys.
To better understand the syntax of entity metadata, it is sometimes helpful to look at the PolicyCenter data model and its metadata definition files. PolicyCenter uses separate metadata definition files for entity declarations and extensions to them.
The base metadata files are available in Studio in the following location:
The extension metadata files are available in Studio in the following location:
The file extensions of metadata definition files distinguish their type, purpose, and contents.
File type |
Purpose |
Contains |
More information |
|---|---|---|---|
.dti |
Data Type Info |
A single data type definition. |
|
.eti |
Entity Type Information |
A single Guidewire or custom entity declaration. The name of the file corresponds to the name of the entity being declared. |
XML root elements and related base PolicyCenter data object types |
.eix |
Entity Internal eXtension |
A single Guidewire entity extension. The name of the file corresponds to the name of the Guidewire entity being extended. |
Internal defintion; see .etx |
.etx |
Entity Type eXtension |
A single Guidewire or custom entity extension. The name of the file corresponds to the name of the entity being extended. |
<extension> elements and related data object types <viewEntityExtension> elements and related data object types |
.tti |
Typelist Type Info |
A single Guidewire or custom typelist declaration. The name of the file corresponds to the name of the typelist being declared. |
|
.tix |
Typelist Internal eXtension |
A single Guidewire typelist extension. The name of the file corresponds to the name of the Guidewire typelist being extended. |
|
.ttx |
Typelist Type eXtension |
A single Guidewire or custom typelist extension. The name of the file corresponds to the name of the typelist being extended. |
The type of a metadata definition file determines what you can store and whether you can modify its contents.
File type |
Location |
Files are modifiable |
|---|---|---|
.dti |
No |
|
.eti |
Yes |
|
No |
||
.eix |
No |
|
.etx |
Yes |
|
.tti |
Yes |
|
No |
||
.tix |
No |
|
.ttx |
Yes |
The Metadata folder
The Studio Metadata folder contains the metadata definition files for entities that comprise the PolicyCenter data model.
A Metadata folder contains the following metadata definition file types:
- Declaration files – Versions of metadata definition files with extensions *.eti and *.tti.
- Internal extension files – Versions of metadata definition files with extensions *.eix or *.tix.
For an example, the PolicyCenter data model includes the following metadata definition files that collectively define the Address entity type.
File version |
Metadata location |
File purpose |
|---|---|---|
Address.eti |
Entity definition |
|
Address.eix |
Extension to the entity definition |
At runtime, PolicyCenter merges the .eti and .eix versions of the Address definition file to create a complete Address entity type.
The Extensions folder
Example of Activity metadata and extension files
The PolicyCenter data model includes the following metadata definition files that collectively define the PolicyCenter Activity entity.
File |
Location |
Purpose |
|---|---|---|
Activity.eti |
Entity definition, not modifiable. |
|
Activity.eix |
Entity extension, not modifiable. |
To extend the PolicyCenter Activity entity, create the following extension file through Guidewire Studio.
File |
Location |
Purpose |
|---|---|---|
Activity.etx |
Custom entity extension. |
