Create the abstract cost entity

About this task

Use Studio to create an abstract cost entity for the new line of business. For Golf Cart, GOCost is the abstract entity. The cost entity implements the Cost delegate. Because the cost entity is a delegate, it automatically includes required columns such as the Amount and Basis fields. The cost entity also has an interface to cost methods for the line. In later steps, you create subtypes of this abstract cost class.

Procedure

  1. Create the GOCost entity by using the Studio Projects window to navigate to configuration > config > extensions. Then right-click Entity node and select New > Entity. In the Entity dialog box, enter the following properties:

    Property

    Value

    Entity

    GOCost

    Entity Type

    entity

    Desc

    A Golf Cart unit of cost for a period of time, not to be further broken up.

    Table

    gocost

    Extendable

    true

    Exportable

    true

    Final

    false

  2. After you add the GOCost entity, add the following parameters to the entity to make it effective-dated and an abstract cost:

    Property

    Value

    type

    effdated

    effDatedBranchType

    PolicyPeriod

    abstract

    true

    Note: The cost is an abstract entity, which means that it is accessed within the application only through its subtypes.
  3. Add a foreignkey element to the policy line. The policy line for Golf Cart is GolfCartLine. Set the foreign key properties as follows:

    Property

    Value

    name

    GolfCartLine

    fkentity

    GolfCartLine

    nullok

    false