You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generated JPA entity uses SQL reserved words as column names (CURRENT-DATE -> current_date): the table is not created on H2 #4037
bugUnintended behavior or logic failure in the engineera:4Era CICS TS 3+, Enterprise COBOL: channels, JSON, async (2005+) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Found while running the porting loop on CardDemo (#4023 follow-up). Every generated CardDemo project logs a failed DDL statement when Hibernate creates its schema on H2:
The entity for PENDING-AUTH-DETAILS (app-authorization-ims-db2-mq) has a field from the COBOL item CURRENT-DATE. It is mapped to the column current_date, which is a reserved word in H2 (and in standard SQL). The table is not created. Any repository call on that entity then fails. Programs that don't touch it (every equivalence case so far) run, but a port of the authorization programs would hit it.
Fix
When a generated column name is an SQL reserved word, quote it or rename it, e.g. @Column(name = "\"CURRENT_DATE\""), or a suffix like current_date_. The alternative is hibernate.globally_quoted_identifiers in the generated config. Either way the check should cover the reserved words of every target database the generator supports (H2, PostgreSQL, DB2), not just this one name. Add a test with a COBOL item named CURRENT-DATE / USER / ORDER.
bugUnintended behavior or logic failure in the engineera:4Era CICS TS 3+, Enterprise COBOL: channels, JSON, async (2005+) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Activity
The porting loop on CardDemo: an unattended model proves 5 programs, …
Reserved words as generated column / table names are quoted (#4037); …