<viewEntityExtension> elements and related data object types

The <viewEntityExtension> XML root element defines view entity extension data object types. You use the view entity extension entity to extend the definition of a viewEntity entity. See <viewEntity> elements and related data object types for more information on view entities. Guidewire defines view entity extension data object types in the data model metadata files.

Attributes of <viewEntityExtension>

The <viewEntityExtension> element contains the following attributes:

<viewEntityExtension>  attribute        

Description

Default

entityName

Required. This value must match the file name of the viewEntityExtension that it extends.

PolicyCenter generates an error at resource verification if the value set that you set for the entityName attribute for a viewEntityExtension does not match the file name.

None

Subelements of <viewEntityExtension>

The <viewEntityExtension> element contains the following subelements:

<viewEntityExtension>  subelement  

Description

computedcolumn

Specifies a column with row values that Guidewire computes while querying the database. For example, the values of a computed column might be the sum of the values from two database columns (col1 + col2).

computedtypekey

Specifies a typekey that has some type of transformation applied to it during querying from the database.

description

A description of the purpose and use of the entity.

viewEntityColumn

Represents a column in a viewEntity table. The viewEntityColumn element contains a path attribute that you use to define the entity path for the column:

  • The path attribute definition cannot traverse arrays.
  • The path attribute is always relative to the primary entity on which you base the view.

Note: If you reference a column of type currencyamount, you must also define the currencyProperty specified in the original column definition on the viewEntity entity. See Extending an existing view entity for an example of this.

viewEntityLink

Uses to access another entity through a foreign key. Typically, you use this value within the PolicyCenter interface to create a link to that entity.

viewEntityName

Represents an entity name column in a viewEntity table. An entity name is a string column that contains the name of an entity that is suitable for viewing in the PolicyCenter interface.

viewEntityTypekey

Represents a typekey column in a viewEntity table.

Important caution

Guidewire strongly recommends that you not create a view entity extension—viewEntityExtension—that causes traversals into revisioned (effdated) data. Doing so has the possibility of returning duplicate rows if any revisioning in the traversal path splits an entity.

Instead, try one of the following:

  • Denormalize the desired data onto a non-effdated entity.
  • Add domain methods to the implementation of the View entity.