2018-05-02 12:37 GMT+02:00 <[email protected]>:

> I tried to post this in the "FEEDBACK" thread, but for some reason, Google
> doesn't like it for some reason.
>

Interesting. Hmm... I've unpinned that other thread. Ultimately, creating
new threads doesn't cost anything.


> It would be great if getPrimaryKey() method would allow Field.<methods>
> like .eq().
>
> Or maybe a new method:
>
> c.fetchOne(TABLE,TABLEA.getPrimaryKeyField().eq("some
> key").into(TableA.class);
>

That's an interesting suggestion, definitely worth keeping in mind.


> The question what happens if you use a compound primary key?
>

All keys are compound, you just happen to mostly use single-column keys :)

I don't see this method working on single columns only, perhaps on a Row[N]
type. This would essentially be a code generator feature. Having said so,
you can easily generate such methods yourself by adding a custom code
section:
https://www.jooq.org/doc/latest/manual/code-generation/codegen-custom-code

-- 
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