Feature idea
Generate a method like

public Condition getPrimaryKeyCondition(String strongly,  Integer typed, 
LocalDateTime parameters) {
    return 
FOO.STRONGLY.eq(strongly).and(FOO.TYPED.eq(typed)).and(FOO.PARAMETERS.eq(parameters));
}

on each implementation of the Table interface.

Benefits
This method would allow to write type safe and compile time safe statements 
that deal with the primary key, for example:

int numberOfDeletedRecords = 
dsl.delete(FOO).where(FOO.getPrimaryKeyCondition(strongly, typed, 
parameters)).execute();

Also, it gets rid of the boilerplate code of creating the combined where 
condition, which might be hard to read but easy to mess up for a human 
developer.

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/3496fa39-690a-4fd2-88ff-262b21d6ab9an%40googlegroups.com.

Reply via email to