by ff333ttee · 5y ago · 0 comments
Validators likewise are a non-issue. Jackson handles that automatically during the underlying type conversion, and Java won't allow you to construct a UUID that is invalid.
I see explicit conversion between types as a pro, not a con. If I'm going to take one ID and try to use it as an ID for a different type of entity, I'd better have a very good reason.
Again, I did this with a specific set of tools, but the functionality I used should be available in pretty much any language and serialization framework.