Sometimes it can get hairy when functions have signature like this:
fun doStuff(firstKey: UUID, secondKey: UUID, ...)
To the compiler all UUIDs are the same, so a problem here is hopefully caught at run time by the database.
I like how jOOQ catches many problems at compile time, and I would like to tackle this one too. My goal is to have for every key of every table its own class, and to have the pojos generated correctly with these fields too.
What would be the best way of achieving that? I've come up with the following:
- Full blown
JavaGeneratorimplementation Converterswith lot's of forced type mappings, and manually created key classes
Does anybody have experience with something like that?