Hi Ramon,

Thanks for your enquiry. There's a known issue in Gradle / Groovy, which
happens when an XML-based DSL uses "reserved" names. We've documented this
here:
http://www.jooq.org/doc/latest/manual/code-generation/codegen-gradle

Look for:

        // Watch out for this caveat when using MarkupBuilder with
"reserved names"
        // - https://github.com/jOOQ/jOOQ/issues/4797
        // - http://stackoverflow.com/a/11389034/521799
        // - https://groups.google.com/forum/#!topic/jooq-user/wi4S9rRxk4A
        generate([:]) {
            pojos true
            daos true
        }


Let me know if this helps,
Lukas

2016-03-22 10:31 GMT+01:00 Ramon Lansangan <[email protected]>:

> I am using gradle plugin, how can I register my custom type converter?
>
>
> Below is the excerpt of gradle configuration:
>
>
> generator {
>     name = 'org.jooq.util.DefaultGenerator'
>     strategy {
>         name = 'org.jooq.util.DefaultGeneratorStrategy'
>         // ...
>     }
>     database {
>         name = 'org.jooq.util.mysql.MySQLDatabase'
>         inputSchema = 'foodb'
>         unsignedTypes = false
>
>
>
>
>
> * customTypes {            customType {                name = 
> java.time.LocalDateTime                converter = 
> com.test.LocalDateTimeConverter            }        }*
>     }
>
>     generate {
>         relations = true
>     }
>     target {
>         packageName = 'com.test.core.jooq'
>         directory = 'src/main/java'
>     }
> }
>
>
>
> I encountered java.lang.Class cannot be cast to java.lang.String
>
> --
> 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.

Reply via email to