AutoIdDirective constructor

AutoIdDirective(
  1. @Optional.new() IdGenerator idGenerator,
  2. @Attribute.new('id') String existingId
)

Implementation

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