Comments (4)
Thanks for your message. I'm assuming this question is also yours?
Can you please show your complete code generation configuration?
from jooq.
project.flyway {
user = project.rootProject.name
url = "jdbc:h2:file:${buildDir}/generated/h2/${project.rootProject.name};mode=MySQL;DATABASE_TO_LOWER=TRUE"
driver = 'org.h2.Driver'
}
project.dependencies {
jooqGenerator 'com.h2database:h2:2.2.224'
}
project.jooq {
version = '3.19.3'
configurations {
main {
generationTool {
jdbc {
driver = 'org.h2.Driver'
url = project.flyway.url
user = project.flyway.user
}
generator {
database {
inputSchema = 'public'
}
target {
packageName = project.rootProject.group + '.' + project.name.replaceAll('[-_]', '') + '.jooq'
directory = "${buildDir}/generated/source/jooq/main"
}
generate {
javaTimeTypes = false
}
}
logging = 'DEBUG'
}
}
}
}
from jooq.
I wonder, is this really a problem caused by jOOQ instead of by your H2 upgrade? I don't see why jOOQ would produce such a change on its own. Does your H2 database produce lower case identifiers when you connect to it (e.g. using Dbeaver) and query the INFORMATION_SCHEMA.TABLES
and INFORMATION_SCHEMA.COLUMNS
views?
Please note that rather than using H2 to generate code, why not work with testcontainers and an actual MySQL instance. That would also allow you to use vendor specific features not supported by H2's mode=MySQL
mode:
https://blog.jooq.org/using-testcontainers-to-generate-jooq-code/
from jooq.
Per default H2 tables, columns and schema are UPPER_CASE. I had to change the config for H2 to lower_case and then the schema from 'PUBLIC' to 'public' for JOOQ code-gen.
from jooq.
Related Issues (20)
- Wrong source code generated when newline escape sequence of long view source is split into two HOT 3
- Wrong source code generated when newline escape sequence of long view source is split into two - Merge [#16662]
- Wrong source code generated when newline escape sequence of long view source is split into two - Merge [#16662]
- Wrong source code generated when newline escape sequence of long view source is split into two - Merge [#16662]
- Add SQLite support for GROUP_CONCAT(DISTINCT ..) HOT 1
- Generate DAO.fetchOneByXYZ for unique columns missing with SQLite HOT 6
- Hangs after several iterations of a SELECT query that retrieves about 200 items in R2DBC. HOT 1
- Add jakarta.annotation.Generated as possible GeneratedAnnotationType
- Cannot insert varchar[] column value using jooq HOT 2
- Update using multi-column set clause with DSL.row and custom type logs warn on deprecated static type registry - Merge [#16627]
- Update using multi-column set clause with DSL.row and custom type logs warn on deprecated static type registry - Merge [#16627]
- Update using multi-column set clause with DSL.row and custom type logs warn on deprecated static type registry - Merge [#16627]
- SQLite "Cannot parse or interpret sql for table" error with both unique columns and foreign key constraints HOT 6
- SQLite "Cannot parse or interpret sql for table" error with both unique columns and foreign key constraints - Merge [#16675]
- SQLite "Cannot parse or interpret sql for table" error with both unique columns and foreign key constraints - Merge [#16675]
- SQLite "Cannot parse or interpret sql for table" error with both unique columns and foreign key constraints - Merge [#16675]
- Wrong title in manual section "alter-table-drop-foreign-key" HOT 1
- Support Oracle 23ai's DEFAULT ON NULL clauses
- Add dynamic TOC to manual pages
- Add a Settings.parserJDBCEscapeSyntax
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 jooq.