{"id":31170428,"url":"https://github.com/fuinorg/ddd-4-java","last_synced_at":"2026-04-09T04:31:16.386Z","repository":{"id":15477591,"uuid":"18211123","full_name":"fuinorg/ddd-4-java","owner":"fuinorg","description":"Base classes for Domain Driven Design (DDD) with Java","archived":false,"fork":false,"pushed_at":"2026-01-26T21:53:42.000Z","size":1044,"stargazers_count":86,"open_issues_count":4,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-02-19T04:37:02.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fuinorg.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,"zenodo":null}},"created_at":"2014-03-28T12:21:59.000Z","updated_at":"2026-02-12T14:14:28.000Z","dependencies_parsed_at":"2024-01-21T10:22:39.358Z","dependency_job_id":"ab7dfc63-3879-46ad-94bf-27a0406e3e7a","html_url":"https://github.com/fuinorg/ddd-4-java","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/fuinorg/ddd-4-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuinorg%2Fddd-4-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuinorg%2Fddd-4-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuinorg%2Fddd-4-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuinorg%2Fddd-4-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuinorg","download_url":"https://codeload.github.com/fuinorg/ddd-4-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuinorg%2Fddd-4-java/sbom","scorecard":{"id":413258,"data":{"date":"2025-08-11","repo":{"name":"github.com/fuinorg/ddd-4-java","commit":"86927604a71932ab96e7ba8af1f9aafdcd67d73e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/maven.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: .mvn/wrapper/maven-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/fuinorg/ddd-4-java/maven.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/fuinorg/ddd-4-java/maven.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/fuinorg/ddd-4-java/maven.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/fuinorg/ddd-4-java/maven.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/maven.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/fuinorg/ddd-4-java/maven.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Lesser General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/maven.yml:16"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T23:13:11.756Z","repository_id":15477591,"created_at":"2025-08-18T23:13:11.756Z","updated_at":"2025-08-18T23:13:11.756Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31586403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"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":[],"created_at":"2025-09-19T11:02:16.202Z","updated_at":"2026-04-09T04:31:16.378Z","avatar_url":"https://github.com/fuinorg.png","language":"Java","funding_links":[],"categories":["开发框架"],"sub_categories":[],"readme":"# ddd-4-java\n\n# Domain Driven Design for Java\n\nBase classes for Domain Driven Design (DDD) with Java.\n\n[![Java Maven Build](https://github.com/fuinorg/ddd-4-java/actions/workflows/maven.yml/badge.svg)](https://github.com/fuinorg/ddd-4-java/actions/workflows/maven.yml)\n[![Coverage Status](https://sonarcloud.io/api/project_badges/measure?project=org.fuin.ddd4j%3Addd-4-java\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=org.fuin.ddd4j%3Addd-4-java)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.fuin/ddd-4-java/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.fuin/ddd-4-java/)\n[![LGPLv3 License](http://img.shields.io/badge/license-LGPLv3-blue.svg)](https://www.gnu.org/licenses/lgpl.html)\n[![Java Development Kit 17](https://img.shields.io/badge/JDK-17-green.svg)](https://openjdk.java.net/projects/jdk/17/)\n\n## Versions\n- [0.7.0](release-notes.md#070) New Jackson module\n- [0.6.0](release-notes.md#060) **Incompatible new module structure**\n- 0.5.x (or later) = **Java 17** with new **jakarta** namespace\n- 0.3.x/0.4.x = **Java 11** before namespace change from 'javax' to 'jakarta'\n- 0.2.1 = **Java 8**\n\n## Documentation\n\nYou can find the [documentation](https://app.gitbook.com/@fuinorg/s/ddd-4-java/) of the project\nat [gitbook](https://app.gitbook.com/@fuinorg/spaces/) (*Work in progress* - Just started!).\n\n## Presentation\n\nhttp://de.slideshare.net/michael-schnell/ddd-4java/ (Rather old - The git book above is a bit more up-to-date)\n\n## Example\n\nSee [ddd-cqrs-4-java-example](https://github.com/fuinorg/ddd-cqrs-4-java-example) for example microservices using the\nclasses of this library.\n\n## Additional information\n\n### EncryptedData\n\nFor example the [GDPR](https://gdpr.eu/) data protection rules requires to \"delete\" personal data on request. This can\nbe done by encrypting the personal data in the event with a secret key. When the user is deleted, you can simply throw\naway that key, and it is no longer possible to access the personal data in the stored events.\n\nThe [EncryptedData](src/main/java/org/fuin/ddd4j/ddd/EncryptedData.java) class provides a basic structure with the\nrelevant information to encrypt/decrypt such personal data in events.\n\nHere is an example of an event with \"personal-data\" of\ntype [EncryptedData](src/main/java/org/fuin/ddd4j/ddd/EncryptedData.java):\n\n```json\n{\n\t\"event-id\": \"518efad9-fb09-419e-acb6-50f1bc0c1e3e\",\n\t\"event-timestamp\": \"2022-01-22T09:04:18.811501046+01:00[Europe/Luxembourg]\",\n\t\"entity-id-path\": \"USER 5c09fc35-11e8-49d0-87ef-47c1d2738998\",\n\t\"personal-data\": {\n\t\t\"key-id\": \"secret/user/5c09fc35-11e8-49d0-87ef-47c1d2738998\",\n\t\t\"key-version\": \"1\",\n\t\t\"content-type\": \"application/json; encoding=UTF-8; version=1\",\n\t\t\"data-type\": \"PersonalData\",\n\t\t\"encrypted-data\": \"gK1UpxAwislfXCcB3yAPo83uxCPxdIJsf1x64lWckEi21oZiwIjHudEoeJge7KksfougPkHKl08/1ZW/iU7tqnVF8uv5a3Fh79lHPcHBkePhCOzoDnIh05IfVA2IrTQ6\"\n\t}\n}\n```\n\n### EncryptedDataService\n\nThe [EncryptedDataService](src/main/java/org/fuin/ddd4j/ddd/EncryptedDataService.java) interface defines for\nencrypting/decrypting [EncryptedData](src/main/java/org/fuin/ddd4j/ddd/EncryptedData.java) and handling versioned secret\nkeys.\n\nThere are two implementations that can be used for tests:\n\n- [InMemoryCryptoService](https://github.com/fuinorg/ddd-cqrs-unit/blob/master/src/main/java/org/fuin/dddcqrsunit/InMemoryCryptoService.java)\n  for simple in-memory unit tests\n- [VaultCryptoService](https://github.com/fuinorg/ddd-cqrs-unit/blob/master/src/main/java/org/fuin/dddcqrsunit/VaultCryptoService.java)\n  for unit tests with the HashiCorp Vault [Transit Secrets Engine](https://www.vaultproject.io/docs/secrets/transit)\n\n## Snapshots\n\nSnapshots can be found on\nthe [OSS Sonatype Snapshots Repository](http://oss.sonatype.org/content/repositories/snapshots/org/fuin \"Snapshot Repository\").\n\nAdd the following to\nyour [.m2/settings.xml](http://maven.apache.org/ref/3.2.1/maven-settings/settings.html \"Reference configuration\") to\nenable snapshots in your Maven build:\n\n```xml\n\u003crepository\u003e\n    \u003cid\u003esonatype.oss.snapshots\u003c/id\u003e\n    \u003cname\u003eSonatype OSS Snapshot Repository\u003c/name\u003e\n    \u003curl\u003ehttps://oss.sonatype.org/content/repositories/snapshots\u003c/url\u003e\n    \u003creleases\u003e\n        \u003cenabled\u003efalse\u003c/enabled\u003e\n    \u003c/releases\u003e\n    \u003csnapshots\u003e\n        \u003cenabled\u003etrue\u003c/enabled\u003e\n    \u003c/snapshots\u003e\n\u003c/repository\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuinorg%2Fddd-4-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuinorg%2Fddd-4-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuinorg%2Fddd-4-java/lists"}