{"id":21697801,"url":"https://github.com/zenwave360/jdl-jvm","last_synced_at":"2025-10-07T04:32:17.934Z","repository":{"id":37426828,"uuid":"480103594","full_name":"ZenWave360/jdl-jvm","owner":"ZenWave360","description":"JHipster Domain Language (JDL) Wrapped for the JVM","archived":true,"fork":false,"pushed_at":"2023-04-24T20:32:46.000Z","size":738,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-20T15:17:37.551Z","etag":null,"topics":["graalvm","jdl","jhipster","jvm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZenWave360.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-10T18:23:21.000Z","updated_at":"2024-11-28T14:57:34.000Z","dependencies_parsed_at":"2024-11-25T19:34:49.183Z","dependency_job_id":"611d2f59-8e6e-45d4-8f37-9cfbdcc5bdab","html_url":"https://github.com/ZenWave360/jdl-jvm","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/ZenWave360/jdl-jvm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenWave360%2Fjdl-jvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenWave360%2Fjdl-jvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenWave360%2Fjdl-jvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenWave360%2Fjdl-jvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZenWave360","download_url":"https://codeload.github.com/ZenWave360/jdl-jvm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenWave360%2Fjdl-jvm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278722660,"owners_count":26034459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graalvm","jdl","jhipster","jvm"],"created_at":"2024-11-25T19:29:37.305Z","updated_at":"2025-10-07T04:32:17.516Z","avatar_url":"https://github.com/ZenWave360.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JHipster Domain Language (JDL) Wrapped for the JVM\n\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.zenwave360.jhipster/jdl-jvm.svg?label=Maven%20Central\u0026logo=apachemaven)](https://search.maven.org/artifact/io.github.zenwave360.jhipster/jdl-jvm)\n\nJava wrapper for the [JHipster Domain Language JDL](https://www.jhipster.tech/jdl/intro) using Graalvm JS Truffle Language...\n\nThis is part of the [ZenWave Code Generator](https://github.com/ZenWave360/zenwave-code-generator) project:\n\n\u003e Configurable and extensible Code Generator for DDD and API-First modeling with support for JHipster JDL, AsyncAPI and OpenAPI\n\n## Usage\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.zenwave360.jhipster\u003c/groupId\u003e\n    \u003cartifactId\u003ejdl-jvm\u003c/artifactId\u003e\n    \u003cversion\u003e${jdl-jvm.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n```java\nString jdlString = Files.readString(Paths.get(\"jdl-samples-main/21-points.jh\"));\nMap\u003cString, Object\u003e parsedJDL = JDLParser.parseJDL(jdlString);\n```\n\n```java\nString jdlString = Files.readString(Paths.get(\"jdl-samples-main/21-points.jh\"));\nMap\u003cString, Object\u003e parsedJDL = JDLParser.parseJDL(jdlString, , Map.of(\"databaseType\", \"mongodb\"));\n```\n\nNote: It uses Graalvm JS Truffle Language and performance is not that bad. It takes about 3' to load the js script and parse the jdl string.\n\n## Generating jdl-parser.js bundle\n\nUpstream JDL source code is located under `src/main/jdl-core` folder.\n\nYou can bundle `target/classes/io/zenwave360/jhipster/jdl/jdl-parser.js` using:\n\n- `mvn generate-resources` from project root, or\n- `npm run generate-resources` from `src/main/jdl-core` folder\n\n## Custom Extensions\n\nThis wrapper includes some extensions compatible with the original JDL format, meaning that valid JDL will produce the same jdlObject as the upstream jdl library.\n\n### Extensions In JDL Language\n\n- Field Types: in addition to enums and basic types it allows other entities (and arrays of) as field type, this is useful for embedded fields which are not relations.\n- Service: in addition to `serviceClass` and `serviceImpl` it allows configuring free text value as `serviceName` to allow grouping multiple entities in a given service. Then it's up to each generator to generate an interface or just an implementation class.\n\n### Extensions In Parsed Result Object\n\n- Adds annotation options to the entity object\n- Adds `isEnum`, `isEntity` and `isArray` to entity fields\n- Adds `className`, `instanceName`, `classNamePlural` and `instanceNamePlural` to entity fields\n- Fill globaly configured options (like service, dto ,search...) to entity options for consistency\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenwave360%2Fjdl-jvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenwave360%2Fjdl-jvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenwave360%2Fjdl-jvm/lists"}