Hello Sergey,

> So, I agree with Daniel, it would be great to have additional configuration
> parameter in jooq-codegen-maven, that defines target schema name:
>
>                     <jdbc>
>                         <schema>PROJCODE_DEV1</schema>
>                     </jdbc>
>                     <generator>
>                         <target>
>                             <schema>PROJCODE</schema>
>                         </target>
>                     </generator>

This schema re-writing functionality will work like this:

                        <configuration>
                            <jdbc>
                                ... the schema here is deprecated.
it'll be removed later
                                <schema>${schemaLocalName}</schema>
                            </jdbc>
                            <generator>
                                <database>
                                    ... the input schema is used for
reading data in jooq-meta

<inputSchema>${schemaLocalName}</inputSchema>
                                    ... the output schema is used for
code generation

<inputSchema>SchemaReliableName</inputSchema>

I'll create a sample configuration in the jooq-codegen-maven-example
Maven artefact. Both code generation and runtime will be integration
tested in a new integration test suite.

Cheers
Lukas

Reply via email to