Hi Steinar,

>From a high level, this looks great.

The noisy code creating the derived config is moved into a helper class so
> that I don't need to have this spread around my DAOs:
>
> try (DSLContext ctx = 
> dbCon.transactionWithIsolationLevel(TransactionDefinition.ISOLATION_SERIALIZABLE))
>  {
>         ctx.transaction(() -> savedResult.set(saveMethod(ctx, entity))
>     );
>     return savedResult.get();
> }
>
> You could do it this way, or even extend jOOQ's DSLContext with your own,
providing additional transaction() methods that take the isolation level as
an argument.

Hope this helps,
Lukas

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to