I have a DTO that I use for projections in my queries, which is based on a POJO created by JOOQ but adds a custom field (retrieved from a join).
Currently, I need to:
It is a tiny class, but needs to be amended each time I modify the underlying POJO.
I wonder if this process can be automated? Can I tap into the generation process to emit my DTO as well?
I can see several ways of doing this: