How to declare custom uuid generator?

There is a bug in provided code, constructor has wrong annotation, which prevented constructor from being found. As a fallback no-arg is searched for.

So: annotation has to define it’s implementor, implementor has to reference it’s annotation. If I looked correctly, if there is a mismatch there won’t be any log about it, and no-arg ctor will be searched for instead. If this does not exist, there will be exception generated.