Michael Michailidis
Michael Michailidis

Reputation: 1052

Jooq Global Artefacts Rename

Jooq code generator creates some global artefacts in a specified directory which are great. But is there a way to add some prefix / suffix on them so the names wont collide with the actual entities?

I have been reading this but without any hope :/

What I have is a package "entity" with an item called "Event" inside. The code generator will create an "Event" global artefact which requires the fully qualified name to be called if I have already imported the Event in my class. I would like to avoid that by added a prefix on the generated Item, something like what queryDsl does with the Q as prefix.

Thank you in advance

Upvotes: 3

Views: 165

Answers (1)

Lukas Eder
Lukas Eder

Reputation: 220952

You can use generator strategies (programmatic or configurative) to influence the generated names of objects.

Upvotes: 2

Related Questions