Comments (6)
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.
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.
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.
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.
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.
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)
- Importing JooqPlugin class HOT 1
- Plugin is incompatible with Gradle 9 HOT 8
- Unable to Override XSD Version to 3.18 for org.jooq.pro-java-11 with Java 11 Compatibility HOT 11
- Fix jOOQ groupIds in JooqPlugin, depending on JooqEdition configuration HOT 1
- How to setup jooq with h2 ,,
- Introduce build service to provide JooqConfig HOT 1
- `JooqGenerate` should implement `JavaExecSpec` HOT 2
- Generate non-nullable Kotlin types through a precompiled script using kotlin DSL HOT 1
- generateJooq fails because `javaExecSpec` is null HOT 2
- Why does the JOOQ setting up fail even though I followed the documentation? HOT 1
- Request for documentation - comparison with the new "official" jOOQ Gradle plugin HOT 1
- Document relationship to the built-in jOOQ gradle plugin HOT 2
- Upgrading plugin to 8.2.2+ causes different jOOQ code to be generated HOT 3
- Updating the gradle-jooq-plugin from 8.2.3 to 9.0 breaks the code generation HOT 3
- Lazy configuration evaluation HOT 2
- JOOQ doesn't generate classes unless schema is added or removed... problem with cache? HOT 3
- Combination of setup-gradle github action with cache and gradle-jooq-plugin leads to "Unresolved reference" HOT 2
- Java version question HOT 3
- [Question] How is the `cleanGenerateJooq` created? HOT 2
- Official jOOQ codegen gradle plugin support now in 3.19? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-jooq-plugin.