setIdGenerator

Provide an IdGenerator to use. If a value is not supplied a default implementation will be provided.