{"id":19656820,"url":"https://github.com/daggerok/ddd-spring-hexagonal-architecture","last_synced_at":"2025-09-05T12:38:32.409Z","repository":{"id":151041484,"uuid":"237516216","full_name":"daggerok/ddd-spring-hexagonal-architecture","owner":"daggerok","description":"Yet another DDD","archived":false,"fork":false,"pushed_at":"2020-02-01T15:03:49.000Z","size":111,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T21:09:22.202Z","etag":null,"topics":["api","api-client","api-rest","ddd","ddd-architecture","ddd-example","ddd-patterns","ddd-sample","feature","feature-architectures","features","httpie","idea-http-client","jq","layer","layered-architecture","one-to-many","spring-data-jdbc","spring-data-jdbc-one-to-many"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daggerok.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":"2020-01-31T21:07:14.000Z","updated_at":"2025-03-24T23:45:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"7775911d-1cff-4ec7-8945-573ebea033be","html_url":"https://github.com/daggerok/ddd-spring-hexagonal-architecture","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fddd-spring-hexagonal-architecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fddd-spring-hexagonal-architecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fddd-spring-hexagonal-architecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fddd-spring-hexagonal-architecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/ddd-spring-hexagonal-architecture/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251782775,"owners_count":21642987,"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","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":["api","api-client","api-rest","ddd","ddd-architecture","ddd-example","ddd-patterns","ddd-sample","feature","feature-architectures","features","httpie","idea-http-client","jq","layer","layered-architecture","one-to-many","spring-data-jdbc","spring-data-jdbc-one-to-many"],"created_at":"2024-11-11T15:29:00.216Z","updated_at":"2025-04-30T21:09:28.054Z","avatar_url":"https://github.com/daggerok.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DDD with Spring [![Build Status](https://travis-ci.org/daggerok/ddd-spring-hexagonal-architecture.svg?branch=master)](https://travis-ci.org/daggerok/ddd-spring-hexagonal-architecture)\nHexagonal DDD application architecture\n\n```\n    +----------+\n    | Election |                      Hexagonal architecture\n    +----------+\n       | 1                 +------------------------------------------+\n       |                   | Infrastructure (framework related) layer |\n       V 0..*              |  +------------------------------------+  |\n      +-----------+        |  |    Application (business logic)    |  |\n      | Candidate |        |  |           service layer            |  |\n      +-----------+        |  |  +------------------------------+  |  |\n         | 1               |  |  |    Domain (Election) layer   |  |  |\n         |                 |  |  +------------------------------+  |  |\n         V 0..*            |  +------------------------------------+  |\n        +-------+          +------------------------------------------+\n        | Voter |\n        +-------+\n```\n\n## build run and test\n\n1. build\n   ```bash\n   ./mvnw spring-boot:run -f feature\n   # ./mvnw spring-boot:run -f layer\n   ```\n1. And use [api.http file](api.http) from IntelliJ IDEA.\n\n## resources\n\n* [H2 with PostgreSQL mode and random UUID generation by using `RANDOM_UUID()` function](feature/src/main/resources/db/migration/V1__schema.sql#L2)\n* [Nice video on  many-to-* mapping](https://www.youtube.com/watch?v=5rqlqon8xko)\n* [Nice video on  one-to-* mapping](https://www.youtube.com/watch?v=ccxBXDAPdmo)\n* [Helpful link 1 (Entity)](https://github.com/daggerok/spring-data-jdbc-examples/blob/dcd2fde95222f97a6accbd8db929677c05496688/many-to-many/src/main/java/com/example/springdatajdbconetomany/SpringDataJdbcManyToManyApplication.java)\n* [Helpful link 2 (SQL)](https://github.com/daggerok/spring-data-jdbc-examples/blob/dcd2fde95222f97a6accbd8db929677c05496688/many-to-many/src/main/resources/db/migration/ddl.sql)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fddd-spring-hexagonal-architecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Fddd-spring-hexagonal-architecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fddd-spring-hexagonal-architecture/lists"}