Hmm, intuitively, I'd assume that you might be running into a
case-sensitivity issue here. Are you sure your column is all upper-case? If
not, try adding (?i: ... ) around the regex. I.e.
<forcedType>
<name>BOOLEAN</name>
<expression>(?i:.*\.BOOLCOLUMN)</expression>
</forcedType>
2014-04-30 10:53 GMT+02:00 Salimane Adjao Moustapha <[email protected]>:
> 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>
>>
>>
> But still the column BOOLCOLUMN is still of type java.lang.Byte in the
> classes.
> Any ideas ?
>
> --
> 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.