Re: Code gen with customized field implementation

2021-10-06 Thread Lukas Eder
Thanks for the explanations, Gang. Interesting use-case, indeed - I think I remember your previous emails now. Starting from jOOQ 3.16, the schema mapping feature will be retrofitted to work based on the new query object model transformation capabilities. Those will be much more powerful and allow

Re: Code gen with customized field implementation

2021-10-06 Thread 'Gang Luo' via jOOQ User Group
Hi Lukas, Thanks, as always, for your timely and helpful response. Yeah I think post-processing may be the most practical way of doing it. This is related to the dynamic schema mapping I raised a while ago. We want to capture the value set on the field "FOO" so we can dynamically map the schem

Re: Code gen with customized field implementation

2021-10-06 Thread Lukas Eder
Hi Gang, There's no such trick right now, apart from patching the code generator, or post-processing the generated code. In your case, this might be doable using a simple regex replacement. What's the use-case of doing this? Typically, discussing the underlying use-case proves to be more fruitful