title: JOOQ howto generate additional Pojos for projections
body: <p>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).</p>
  <p>Currently, I need to:</p>
  <ul>
  <li>Define the DTO for projection, inherit from the generated POJO</li>
  <li>add the custom field in the DTO</li>
  <li>create the constructor</li>
  </ul>
  <p>It is a tiny class, but needs to be amended each time I modify the underlying POJO.</p>
  <p>I wonder if this process can be automated? Can I tap into the generation process to emit my DTO as well?</p>