AutoIdDirective constructor
AutoIdDirective(
- @Optional.new() IdGenerator idGenerator,
- @Attribute.new('id') String existingId
Implementation
AutoIdDirective(
@Optional() IdGenerator idGenerator, @Attribute('id') String existingId)
: id = existingId ??
((idGenerator ?? SequentialIdGenerator.fromUUID()).nextId());