Hi Devin,

Thanks for the feedback

2016-05-17 19:00 GMT+02:00 Devin Austin <[email protected]>:

> Hi Lukas,
>
> This is exactly what I was looking for, thank you for responding.
>
> Regarding just using org.jooq.DAO:  I am using it where I can, but perhaps
> my lack of JOOQ knowledge is causing me to run into some issues.  I think I
> ran into a few things, one being I wasn't sure how to get the query
> granularity for sorting, limiting and ordering that I wanted to using the
> DAO methods.  I haven't looked at this specifically in a while, so I could
> very well be missing something.
>

No, you aren't missing anything. Currently, there aren't a lot of
possibilities for these things, out of the box.


> So, my next questions are:
>
> 1. What would you recommend if I were to implement this using just
> org.jooq.DAO?  Again, I'll go off on my own and do some more research on
> the generated DAO methods, but I'd like some expert input.
>

The simplest way forward might be to extend the default DAOImpl and let the
code generator use your custom DAOImpl as a base class using generator
strategies:

One option using generator strategies would be to implement "custom code
sections", where you can add your own methods to the generated DAOs:
http://www.jooq.org/doc/latest/manual/code-generation/codegen-generatorstrategy

Another option would be to extend the generated DAOs and add functionality
on a per-table basis.

But of course, your suggested option is fine, too.

2. What needs to be used in place of the TABLE object in my code example?
> I can see situations where I'll want to drop straight into jooq queries and
> it would be helpful to be able to do that without having to duplicate code.
>

I'm sorry, I'm not quite sure what you mean...? Could you provide an
example?

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