Thank for your enquiry and for illustrating your use-case

You could override the JavaGenerator.newJavaWriter() method and return a 
JavaWriter that is initialised with @formatter:off. Then override also 
JavaWriter.beforeClose() and generate @formatter:on in that method. This 
way, you can add these markers to all generated jOOQ classes.

Of course, post processing might be easier (e.g. when using Maven to 
generate code) and more forwards compatible, so I'd recommend that if 
possible.

I hope this helps,
Lukas

Am Dienstag, 7. November 2017 12:28:19 UTC+1 schrieb [email protected]:
>
>
> Hi,
> We use JOOQ in my work place. Generated sources _are_ checked in, but need 
> not be formatted. 
>
> One way to do this when using an IDE  is to use special markers (e.g. 
> `@formatter:off`/`@formatter:on`) 
> Since JOOQ sources are generated, what is the best way to go about this? 
>
> I can always `sed` after the fact, but is it possible to do this as part 
> of code generation?
>
> Regards,
> Manoj
>

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