Hi all,
Has anyone tried to build type-safe IDs with jOOQ? 

Something like described e.g. here:
https://dysphoria.net/2013/04/12/id-type-safety-in-database-code/
https://www.wix.engineering/single-post/on-identifier-types-type-safety-and-guids
(there are probably better articles about it - it is an age-old idea)

It looks to me it would not be that hard to do, given jOOQ already 
generates a bunch of useful code (for example a class for each table) and 
supports custom converters. Then the types would just propagate from 
records to the whole codebase easily

The only boilerplate could be in XML specifying all the converters.

Am I missing any roadblocks?

Thanks,
Nikola

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to