title: Returning id in generic insert using JOOQ
body: <p>I have a very generic API to insert stuff using JOOQ to soem tables:</p>
  
  <pre><code> void insert(@NonNull final Table&lt;?&gt; table,
                  @NonNull final Collection&lt;Field&lt;?&gt;&gt; columns,
                  @NonNull final Collection&lt;Object&gt; values) {
          dslContext.insertInto(table)
                  .columns(columns)
                  .values(values)
                  .execute();
      }
  </code></pre>
  
  <p>Is there a way to return id of that inserted record? All primary keys of tables in my db are named "id" so I could ahrdcode it but I cannot find a way to return it and cast to Integer / Long. 
  I'm using JOOQ 3.9.5.</p>
  
  <p>EDIT: I use MSSQL underneath.</p>