Hi Garret,
I think this is the issue. You wrote (from the manual)
<strategy>
<matchers>
<fields>
<expression>^(.+):(.+)$</expression>
<fieldIdentifier>
<transform>UPPER</transform>
<expression>$1_$2</expression>
</fieldIdentifier>
</fields>
</matchers>
</strategy>
It looks as though the manual is not up to date after the fix in #2910.
https://github.com/jOOQ/jOOQ/issues/2910
It should now read:
<strategy>
<matchers>
<fields>
<field>
<expression>^(.+):(.+)$</expression>
<fieldIdentifier>
<transform>UPPER</transform>
<expression>$1_$2</expression>
</fieldIdentifier>
</field>
</fields>
</matchers>
</strategy>
The lack of this additional XML element was precisely the reason why this
matcher strategy configuration didn't work at all with Maven, prior to
#2910.
I'm very sorry for this inconvenience. I'll fix the jOOQ 3.3 manual
immediately.
- Lukas
2014-04-28 18:45 GMT+02:00 Garret Wilson <[email protected]>:
> For reference here's the full relevant section from my POM. Note that I'm
> running the jOOQ generation in a separate profile so that it won't run with
> a normal Maven build. That is, it is invoked using e.g.: mvn
> generate-resources -P tools
>
> <dependency>
> <groupId>org.jooq</groupId>
> <artifactId>jooq</artifactId>
> <version>3.3.1</version>
> </dependency>
> </dependencies>
>
> <profiles>
> <profile>
> <id>tools</id>
> <build>
> <plugins>
> <plugin>
> <groupId>org.jooq</groupId>
> <artifactId>jooq-codegen-maven</artifactId>
> <version>3.3.1</version>
> <executions>
> <execution>
> <goals>
> <goal>generate</goal>
> </goals>
> </execution>
> </executions>
>
> <dependencies>
> <dependency>
> <groupId>org.postgresql</groupId>
> <artifactId>postgresql</artifactId>
> <version>9.3-1100-jdbc41</version>
> </dependency>
> </dependencies>
>
> <configuration>
> <jdbc>
> <driver>org.postgresql.Driver</driver>
> <url>jdbc:postgresql://127.0.0.1:5432/exampledb</url>
> <user>user</user>
> <password>password</password>
> </jdbc>
>
> <generator>
> <name>org.jooq.util.DefaultGenerator</name>
> <database>
> <name>org.jooq.util.postgres.PostgresDatabase</name>
> <includes>.*</includes>
> <excludes></excludes>
> <inputSchema>public</inputSchema>
> </database>
>
> <strategy>
> <matchers>
> <fields>
> <expression>^(.+):(.+)$</expression>
> <fieldIdentifier>
> <transform>UPPER</transform>
> <expression>$1_$2</expression>
> </fieldIdentifier>
> </fields>
> </matchers>
> </strategy>
> <target>
> <packageName>com.example.jooq.schema</packageName>
>
> <directory>${project.build.directory}/generated-sources</directory>
> </target>
> </generator>
> </configuration>
> </plugin>
> </plugins>
>
> --
> 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.
>
--
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.