Accessing product model pattern through generated type
Gosu expressions now access
many product model objects using CodeIdentifier
instead of PublicID. As
a developer who writes code accessing product model objects, Studio makes
this change largely transparent to you. Usually your code references
a product model object through its generated type. This code does not
require any change.
For example:
- The Liability - Bodily Injury and Property Damage coverage existed
prior to the addition of the
CodeIdentifierattribute. Your code accessing this coverage through the generated typePALiabilityCovdoes not need to change.// Create line-level coverages _liabilityCov = paLine.PALiabilityCov _medPaymentCov = paLine.PAMedPayCovIn prior releases,
paLine.PALiabilityCovaccessedPublicID. In this release,paLine.PALiabilityCovaccessesCodeIdentifier. The change is transparent because the upgrade trigger set theCodeIdentifierto the same value asPublicID. - You add a new coverage, Glass, in PolicyCenter 9.0 with a
CodeIdentifierofHOPGlass. ItsPublicIDis automatically generated and set to a value such asx743oqa128. Just as before, you can access the coverage through the generated typeHOPGlass:// Create line-level coverages _glassCov = hopLine.HOPGlass
