Anyone looking for a programmatic way of doing it rather than XML can view 
this sample from jOOQ:

https://www.jooq.org/doc/3.9/manual/code-generation/codegen-advanced/codegen-config-forced-types/

On Wednesday, April 30, 2014 at 1:53:13 AM UTC-7, Salimane Adjao Moustapha 
wrote:
>
> 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.

Reply via email to