title: How can I map entity using a Jooq?
body: <p>I have a trouble: can't figure out how to map result of Jooq query.</p>
  <p>I have 2 entities: Payment method and Currency for it. Payment method contains a List inside. Both are stored in different tables.</p>
  <p>I get one:</p>
  <pre><code>public Optional&lt;PaymentMethod&gt; getMethod(Long id) {
  return this.dslContext.selectFrom(PAYMENT_METHOD)
      .where(
          PAYMENT_METHOD.ID.eq(id),
          PAYMENT_METHOD.DELETED.eq(false)
      ).fetchOptional().map(v -&gt; methodDao.mapper().map(v));
  </code></pre>
  <p>And want to get currencies too, by using a:</p>
  <pre><code>return this.dslContext.select(asterisk())
      .from(PAYMENT_METHOD)
      .join(PAYMENT_METHOD_CURRENCY)
      .on(PAYMENT_METHOD_CURRENCY.METHOD_ID.eq(id))
      .where(
          PAYMENT_METHOD.ID.eq(id),
          PAYMENT_METHOD.DELETED.eq(false)
      )
      .fetch()
      .map(...)...
  </code></pre>
  <p>So, how can I map this further?</p>
  <p>I have a decision for a single entity inside other, like that:</p>
  <pre><code>private PaymentProviderMethod mapMethod(Record record) {
  final PaymentMethodRecord methodRecord = record.into(PAYMENT_METHOD);
  final PaymentProviderRecord providerRecord = record.into(PAYMENT_PROVIDER);
  return new PaymentProviderMethod(
      methodDao.mapper().map(methodRecord),
      providerDao.mapper().map(providerRecord));
  </code></pre>
  <p>But have no idea how to map list in this case. Could u help, please?</p>