Hi 2013/4/18 <[email protected]>: > Hello. > I'm new to jOOQ and currently selecting tools for working with DB in my > Scala application (from jOOQ i need only query builder). > I looked through docs but didn't find answer.. is it possible to compose > (with proper typesafety of course) queries from reusable abstract parts > (subqueries)?
Yes, it is possible to reuse subqueries in greater contexts. Beware though, that unlike some other jOOQ QueryParts, Query objects (e.g. subqueries) are generally mutable. Thus, be aware of potential side-effects when modifying subqueries used in many top-level queries. Some more insight can be found here: http://www.jooq.org/doc/3.0/manual/sql-building/sql-statements/dsl-and-non-dsl/#N108B0 Hope this helps Lukas -- 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/groups/opt_out.
