Yes, we wrote our own DAO's based on Jooq's version, and in most cases make simplifying assumptions about single column pk's. Your DAO is more robust.
On Friday, July 1, 2016 at 9:29:47 AM UTC-4, Lukas Eder wrote: > > Oh, I see, thanks for clarifying. Yes indeed. The "id" is of type <T> in > DAO, which is either a single column or a composite column modelled by > Row[N] > > Thanks, > Lukas > > 2016-07-01 15:13 GMT+02:00 Jacob G <[email protected] <javascript:>>: > >> Sorry Lukas. Never mind this question. I misread the method, and assumed >> it was only checking on a single-column primary key "id", and not composite >> primary keys. I did not mean that it should check all attributes. >> >> On Friday, July 1, 2016 at 8:43:59 AM UTC-4, Lukas Eder wrote: >>> >>> Hi Jacob, >>> >>> Thank you for your message. I'm sorry, I'm not quite sure what you are >>> asking. Do you mean why DAO.exists(P) doesn't create predicates for all of >>> the attributes? The simple explanation is because that would be >>> inconsistent with other methods, such as DAO.delete(P). >>> >>> Does that answer your question? >>> Lukas >>> >>> 2016-06-29 22:22 GMT+02:00 Jacob G <[email protected]>: >>> >>>> Why doesn't DAOImpl::exists do a full primary key lookup rather than >>>> existsById? >>>> >>>> -- >>>> 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. >>>> >>> >>> -- >> 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] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.
