<foreignkey>
The <foreignkey> element defines a foreign key reference to another entity.
Attributes of <foreignkey>
The <foreignkey> element contains the following attributes.
|
Description |
Default |
|---|---|---|
|
By default, a foreign key implies a relationship that the link target owns the source of the foreign key. Use the This attribute can be set to one of the following:
|
|
|
Optional. If specified, PolicyCenter uses this value as the column name of the corresponding database column. If you do not specify a The columnName attribute must be no more than 30 characters in length. It allows only unaccented Roman letters, numbers, and the underscore character. The first character of the columnName attribute must be a letter. Although the underscore character is allowable here, Guidewire discourages its use. Note: As a common and recommended practice, use the suffix Guidewire does not require that you use an IMPORTANT All column names on a table must be unique in that table. Otherwise, Guidewire Studio™ displays an error if you verify the resource, and the application server fails to start. |
None |
|
If |
|
|
If |
|
|
Whether to create a histogram on the column during an update to the database statistics. Note: It is possible to override this attribute on an existing column in an extension (*.etx) file using the This change does not take effect during an upgrade. The change occurs only if you regenerate statistics for the affected table by using the Guidewire maintenance_tools command. See also |
|
|
If If you deprecate an item, use the description to explain why. For more information, see Data entity subelements. |
|
|
A description of the purpose and use of the field. |
None |
|
If the following attributes are set to
then, the value in the staging table can only be a reference to an existing object. |
|
|
Unused. |
|
|
Unused. |
|
|
Required. The entity to which this foreign key refers. |
None |
|
See Data objects and scriptability for information. |
|
|
This attribute has complex, non-intuitive interactions with data entity relationships. See Interactions of ignoreForEvents attribute with data entity relationships for information on how to use and configure it. |
|
|
If |
|
|
If This is useful if the access pattern in one or more important queries is to join to this table through the foreign key. You can then use the ID to probe into a referencing table. The only columns that you need to access from the table are this foreign key, and the retired and ID columns. In that case, adding the ID column to the index creates a covering index and eliminates the need to access the table. |
|
|
If |
|
|
Internal. If true, then the loading code does not use a default value or report a warning if the column is nullable without a default. |
|
|
Required. Specifies the name of the property on the entity. |
None |
|
Internal. This applies only to a foreign key that points to an
|
|
|
Whether the field can contain |
|
|
Internal. If IMPORTANT If set to |
|
|
Whether the foreign key is required to be non-null upon initial construction of instances of the entity. See Special behaviors for entity types during instantiation. |
|
|
See Data objects and scriptability for information. |
|
|
Unused. |
|
|
Whether changes to the entity referred to by this foreign key trigger validation. |
|
Subelements of <foreignkey>
The <foreignkey> element contains the following subelements.
|
Attributes |
Description |
|---|---|---|
|
None |
See <fulldescription>. |
|
None |
See <tag>. |
