O yeahh this what I want. Tks Lukas
2016-06-05 19:38 GMT+02:00 Lukas Eder <[email protected]>: > Hi Denis, > > 2016-06-03 8:32 GMT+02:00 Denis Miorandi <[email protected]>: > >> Hi Lukas, >> finally I've kept first approach (the fetch one) cause I need a >> query local approach, not a global one (my dsl context is global, via >> spring 4). >> I've just added my already existings java8 time* converters inside the >> RecordMapper in getValue(), and it works. >> > > Sure, that's certainly doable. I suspect that this is for 1-2 queries > only, anyway... > > Just to understand for future tasks, the Listener approach is always at >> global/config level? Or it's possible to add a listener also at query level? >> > > It's always at config level. But the config isn't always global. While > you're still welcome to continue using a global Configuration / DSLContext, > do note that there are various Configuration.derive() methods, which help > you derive a *new* Configuration from an existing one, e.g. just for a > single query. For example: > > > @Autowired > Configuration global; > > // and then: > DSL.using(global.derive(ADD_WITH_XML_NAMESPACES_LISTENER)) > .select(...) > .from(...); > > // or even: > public static DSLContext withXmlNamespaces() { > return global.derive(...); > } > > // and then (this looks as though jOOQ supported the feature): > withXmlNamespaces() > .select(...) > .from(...) > > > Hope this helps, > Lukas > > -- > You received this message because you are subscribed to a topic in the > Google Groups "jOOQ User Group" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jooq-user/Qn23iP3m5oA/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Dott. Denis Miorandi via dei Vignai 27 38060 - Nogaredo (TN) -- 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.
