Open romarioliveira25 opened 2 months ago
@romarioliveira25 can you provide a PR?
@romarioliveira25 can you provide a PR?
I can try, but probably need some help about wich template files define it.
thx @mshima, i'm looking for initial_schema_sql.xml.ejs
, and could not find where is defined idField.columnType
, for understand why user built-in column id is type VARCHAR(100)
and columns for custom entity generated with the ${uuidType}
on databases like MySQL are set with the type VARCHAR(36)
.
https://github.com/jhipster/generator-jhipster/blob/d173518767475776ecd607e7e4aee5c664d3892e/generators/liquibase/templates/src/main/resources/config/liquibase/changelog/initial_schema_sql.xml.ejs#L47 https://github.com/jhipster/generator-jhipster/blob/d173518767475776ecd607e7e4aee5c664d3892e/generators/liquibase/templates/src/main/resources/config/liquibase/changelog/initial_schema_sql.xml.ejs#L50 https://github.com/jhipster/generator-jhipster/blob/d173518767475776ecd607e7e4aee5c664d3892e/generators/liquibase/templates/src/main/resources/config/liquibase/master.xml.ejs#L27
Can you provide some help about that also?
Overview of the issue
When using the annotation
@id
to define a custom column id asUUID
in Oracle Database, the generator create liquibase changelogs with column type${uuidType}
. With this, liquibase generate table column with typeRAW(16)
, instead ofVARCHAR2(100)
as occurs with jHipster built in entities.Motivation for or Use Case
Turn
UUID
a pattern for column id of all entities like is in jHipster built in entities.Reproduce the error
Related issues
Suggest a Fix
By now, I have no code to fix it, but the expected behavior would be as occurs with jHipster built in entities, the use custom id columns
JHipster Version(s)
8.3.0
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
Ubuntu 22.04 Google Chrome 124.0.6367.60