I'm faced with another problem related to MySQL boolean field becoming java.lang.Byte type in the classes.
I've already added this to my pom.xml
<generator> <name>org.jooq.util.DefaultGenerator</name> <database> <name>org.jooq.util.mysql.MySQLDatabase</name> <includes>.*</includes> <excludes></excludes> <dateAsTimestamp>true</dateAsTimestamp> <inputSchema>mydb_development</inputSchema> <forcedTypes> <forcedType> <name>BOOLEAN</name> <expression>.*\.BOOLCOLUMN</expression> </forcedType> </forcedTypes> </database> <target> <packageName>com.packages.jooq.gen</packageName> <directory>src/main/java</directory> </target> <generate> <relations>true</relations> <deprecated>false</deprecated> <instanceFields>true</instanceFields> <pojos>false</pojos> <immutablePojos>false</immutablePojos> </generate> </generator>
BOOLCOLUMN is still of type java.lang.Byte in the classes.
<forcedType>
<name>BOOLEAN</name>
<expression>(?i:.*\.BOOLCOLUMN)</expression>
</forcedType>--
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 jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
select `database_name`.`table`.`column2` from `database_name`.`table` where `database_name`.`table`.`column1` = 'aaaa';
I went with renderSchema.Thanks
<forcedType> <!-- Specify any data type from org.jooq.impl.SQLDataType --> <name>BOOLEAN</name> <!-- Add a Java regular expression matching fully-qualified columns. Use the pipe to separate several expressions. If provided, both "expressions" and "types" must match. --> <expression>.*\.IS_VALID</expression> <!-- Add a Java regular expression matching data types to be forced to have this type. Data types may be reported by your database as: - NUMBER - NUMBER(5) - NUMBER(5, 2) - any other form. It is thus recommended to use defensive regexes for types. If provided, both "expressions" and "types" must match. --> <types>.*</types> </forcedType>