klyn.data.IndexDescriptor.IndexDescriptor
constructor
public IndexDescriptor(propertyPath as String, unique as Boolean = false):
Description

Creates and validates a typed descriptor.

Parameters
ParameterDescription
propertyPathDot-separated property path rooted at T.
uniqueWhether duplicate non-null values are forbidden.
Throws
  • EntityMappingException when the path cannot be resolved.
Example
bySku = IndexDescriptor<Product>("sku", unique=true)