Skip to content

Conversation

@eralmansouri
Copy link

Currently if I try to use

<forcedType>
    <userType>org.eralmansouri.form.FormDefinition</userType>
    <genericConverter>true</genericConverter>
    <converter>org.eralmansouri.jooq.JacksonConverter</converter>
    <includeExpression>FORM\.DEFINITION</includeExpression>
</forcedType>

I get the error "Cannot find 'genericConverter' in class org.jooq.meta.jaxb.ForcedType". The generic converter configuration option was implemented in 3.19.0 or later (source).

Updating the jooq dependency version to 3.19.8 resolved the issue and the code is correctly generated with the new configuration.

@eralmansouri eralmansouri requested a review from a team May 6, 2024 21:13
@youribonnaffe
Copy link

As an alternative I believe it should be possible to override the plugin's dependency, for instance:

<build>
                <plugins>
                    <plugin>
                        <groupId>org.testcontainers</groupId>
                        <artifactId>testcontainers-jooq-codegen-maven-plugin</artifactId>
                        <version>0.0.4</version>
                        <dependencies>
                            <dependency>
                                <groupId>org.testcontainers</groupId>
                                <artifactId>postgresql</artifactId>
                                <version>${testcontainers.version}</version>
                            </dependency>
                            <dependency>
                                <groupId>org.postgresql</groupId>
                                <artifactId>postgresql</artifactId>
                                <version>${postgresql.version}</version>
                            </dependency>
                            <dependency>
                                <groupId>org.flywaydb</groupId>
                                <artifactId>flyway-core</artifactId>
                                <version>${flyway.version}</version>
                            </dependency>
                            <dependency>
                                <groupId>org.flywaydb</groupId>
                                <artifactId>flyway-database-postgresql</artifactId>
                                <version>${flyway.version}</version>
                            </dependency>
                            <dependency>
                                <groupId>org.flywaydb</groupId>
                                <artifactId>flyway-mysql</artifactId>
                                <version>${flyway.version}</version>
                            </dependency>
                            <dependency>
                                <groupId>org.jooq</groupId>
                                <artifactId>jooq-codegen</artifactId>
                                <version>${jooq.version}</version>
                            </dependency>
                        </dependencies>
                        <executions>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants