DDL to code
Generate Repository, Application, and Api code from a DDL file.
Upload a validated text file, set the namespace prefix, and download the generated code package. The generator keeps audit rules, DTO output, validators, and reports aligned.
Generator
Generate code package
Overview
Generation notes
- Standard business tables generate Repository, Application, and Api code. Relation tables such as
*_relationstill generate entity classes, entity configs, and entity-to-table mappings, but they do not generate CRUD services or controllers. - Every table must define
id bigint. Audit inheritance only supports these exact combinations:id,id + createby + createtime, orid + createby + createtime + modifyby + modifytime. - Entity names are derived from table names after optional prefix stripping. Table names treat
.,-, and_as word separators, while schema-qualified names are preserved forToTable(...)mappings. - Generated DTOs exclude inherited audit fields,
IsDeleted, andRowVersion. Output DTOs inheritOutputDto,OutputBaseAuditDto, orOutputFullAuditInfoDtobased on the detected audit pattern. - String column lengths are reused in entity configs, validation rules, and optional
EntityConsts. Unique constraints become duplicate checks only when every constrained column is included in DTO generation. - The downloaded zip includes layered source output under
srcplus ageneration-report.txtfile that records generated tables and relation tables without CRUD output.
Workflow
Recommended steps
01
Download the demo file
Use the sample DDL to verify naming, audit inference, and relation table behavior before uploading your own schema.
02
Set namespace and prefixes
Keep the namespace clean and strip any shared table prefixes so generated entities read naturally.
03
Generate and integrate
Review the zip package, then copy the generated layers and the report into your target solution.