Thanks a lot, Daniele, for chiming in!

2016-04-13 9:07 GMT+02:00 Daniele Antonini <[email protected]>:
>
> We use QueryDSL to create custom query to retrieve complex objects graph.
>

Perhaps we should offer a DSL also to form JPQL queries, hmm? :)


> A quick strategy I use to choose between  hibernate and jooq is:
>
> If I need to present data to the user like a query result, with zero o few
> business logic on top of it AND I don't need to have an entity to work with
> I choose for jooq.
>

Depending on the database (i.e. not MySQL), of course, it might even be
suitable to move most "business logic" into that query... I'm curious, what
kind of report / complex query is complex enough to use SQL / jOOQ, but
doesn't have any business logic on top of it?

We experienced to use jooq also for non trivial entity fetch and mapping
> the result into entity graph, but we realize that we need too much effort
> to do that


I agree, that's a good idea only in rare cases...

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