Coder Social home page Coder Social logo

Comments (6)

rui-gao avatar rui-gao commented on September 4, 2024

Running into the same issue when generating codes for MySQL with jooq version'3.8.5' and following configuration.

                forcedTypes = [
                    {
                        name = 'BOOLEAN'
                        types = '(?i:TINYINT(\\s*\\(\\d+\\))?(\\s*UNSIGNED)?)'
                    }
                ]

from gradle-jooq-plugin.

uberbrodt avatar uberbrodt commented on September 4, 2024

Same, with jooq version 3.8.1 & plugin 2.0.2

                forcedTypes = [
                    {
                        userType = "java.lang.String"
                        binding = "com.traitify.jooq.customtypes.PostgresLTreeJooqBinding"
                        expression = ".*ORG_PATH"
                    }

from gradle-jooq-plugin.

felipefzdz avatar felipefzdz commented on September 4, 2024

Hi @advoretsky, @demongaorui and @uberbrodt.

The proper way of including Jooq complex types with sequences has been documented here: https://github.com/etiennestuder/gradle-jooq-plugin#typical-pitfalls. An automated test that exercises that scenario has been added: https://github.com/etiennestuder/gradle-jooq-plugin/blob/master/src/test/groovy/nu/studer/gradle/jooq/JooqFuncTest.groovy#L103

/cc @lukaseder

from gradle-jooq-plugin.

lukaseder avatar lukaseder commented on September 4, 2024

Hmm, interesting. Is there anything that could be done from the jOOQ side (backwards-compatibly) that would enable that Groovy list style? The jOOQ code generator configuration just works this way because this is standard practice when defining lists in XSD.

Would be really great if idiomatic configuration style could be used. After all, "idiomacy" is the main feature of this plugin, no?

from gradle-jooq-plugin.

etiennestuder avatar etiennestuder commented on September 4, 2024

Hi @lukaseder. What we plan to do first of all is to provide better error reporting for scenarios like the one of this issue, so people can easily understand the problem and how to fix it.

I'm not sure I want to add two ways to specifying lists (and sets, etc.) in the DSL. Also, the DSL has no explicit goal to be idiomatic-Groovy. In contrary, the fact that the Gradle DSL is parsed by Groovy is more of an implementation detail.

The main feature of this plugin (or at least what drove me to write this plugin) is that you can declare the jOOQ source code generator configuration in your build build rather than in an external xml file.

from gradle-jooq-plugin.

lukaseder avatar lukaseder commented on September 4, 2024

the fact that the Gradle DSL is parsed by Groovy is more of an implementation detail.

Interesting, I missed that bit. Thanks for the explanation!

from gradle-jooq-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.