Hi,

I'm trying to apply a custom naming strategy for the jOOQ code generation. 
The code generation is triggered by a maven goal.

Here is an except of my pom.xml:

<build>
    <plugins>
        <plugin>
            <groupId>org.jooq.trial</groupId>
            <artifactId>jooq-codegen-maven</artifactId>
            <version>3.9.1</version>

            <executions>
                <execution>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                </execution>
            </executions>

            <dependencies>
                <dependency>
                    <groupId>com.microsoft.sqlserver</groupId>
                    <artifactId>mssql-jdbc</artifactId>
                    <version>6.1.0.jre8</version>
                </dependency>
            </dependencies>

            <configuration>
                <jdbc>...</jdbc>
                <generator>
                    <strategy>
                        <name>MyGeneratorStrategy</name>
                    </strategy>
                    <database>...</database>
                    <target>...</target>
                </generator>
            </configuration>
        </plugin>
    </plugins>
</build>



In the class MyGeneratorStrategy I have overloaded the method 
getJavaClassName(Definition 
definition, Mode mode). The names of the generated classes (those that 
indirectly derive from Table or Record respectively) are correct, i. e. 
they match my requirements. Unfortunately the name of the class file does 
not which causes the project to not be compilable. E. g. the generated 
class name is FieldOrder but the name of the generated file containing the 
class'es code is Fieldorder.java.

What am I missing?

Regards,
Marcus

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