2017-04-08 21:32 GMT+02:00 Kevin Embree <[email protected]>: > Thank you Lukas, > > I think ... > ((Table<?>) context.queryPart()).field(name) > ... was the part I was missing. > > As to your comment about performance, as my schema will not change after > initialization of the system, when I initialize the EventListener i will > set up something such a Hashmap <Table, Field>, to quickly find the > corresponding field for the tables visited in the query context. >
That's one option. Alternatively, you could extend the code generator to implement a getSpecialField() method on each table 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/d/optout.
