public IndexDescriptor(propertyPath as String, unique as Boolean = false):
Creates and validates a typed descriptor.
| Parameter | Description |
|---|---|
propertyPath | Dot-separated property path rooted at T. |
unique | Whether duplicate non-null values are forbidden. |
bySku = IndexDescriptor<Product>("sku", unique=true)