{"id":18300380,"url":"https://github.com/taymyr/play-repository-java","last_synced_at":"2025-04-05T13:36:09.524Z","repository":{"id":48858649,"uuid":"152597444","full_name":"taymyr/play-repository-java","owner":"taymyr","description":"DDD Repository for Play/Lagom","archived":false,"fork":false,"pushed_at":"2024-10-15T14:31:40.000Z","size":153,"stargazers_count":5,"open_issues_count":5,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T05:32:47.809Z","etag":null,"topics":["ddd","ddd-patterns","java","kotlin","lagom","lagom-framework","play-framework","playframework"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/taymyr.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":"2018-10-11T13:36:47.000Z","updated_at":"2024-10-15T14:32:05.000Z","dependencies_parsed_at":"2024-10-16T18:10:21.146Z","dependency_job_id":null,"html_url":"https://github.com/taymyr/play-repository-java","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taymyr%2Fplay-repository-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taymyr%2Fplay-repository-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taymyr%2Fplay-repository-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taymyr%2Fplay-repository-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taymyr","download_url":"https://codeload.github.com/taymyr/play-repository-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247342714,"owners_count":20923643,"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":["ddd","ddd-patterns","java","kotlin","lagom","lagom-framework","play-framework","playframework"],"created_at":"2024-11-05T15:12:10.681Z","updated_at":"2025-04-05T13:36:09.210Z","avatar_url":"https://github.com/taymyr.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gitter](https://img.shields.io/badge/chat-gitter-purple.svg)](https://gitter.im/taymyr/taymyr)\n[![Gitter_RU](https://img.shields.io/badge/chat-russian%20channel-purple.svg)](https://gitter.im/taymyr/taymyr_ru)\n[![Build Status](https://travis-ci.org/taymyr/play-repository-java.svg?branch=develop)](https://travis-ci.org/taymyr/play-repository-java)\n[![Javadocs](https://www.javadoc.io/badge/org.taymyr.play/play-repository-api-java.svg?label=JavadocAPI)](https://www.javadoc.io/doc/org.taymyr.play/play-repository-api-java)\n[![Javadocs](https://www.javadoc.io/badge/org.taymyr.play/play-repository-jpa-java.svg?label=JavadocJPA)](https://www.javadoc.io/doc/org.taymyr.play/play-repository-jpa-java)\n[![codecov](https://codecov.io/gh/taymyr/play-repository-java/branch/develop/graph/badge.svg)](https://codecov.io/gh/taymyr/play-repository-java)\n[![Maven](https://img.shields.io/maven-central/v/org.taymyr.play/play-repository-java.svg)](https://search.maven.org/search?q=a:play-repository-java%20AND%20g:org.taymyr.play)\n\n# DDD Repository pattern for [Lagom](https://www.lagomframework.com)/[Play](https://playframework.com)\n\nAPI of library contains only one interface [Repository](https://www.javadoc.io/doc/org.taymyr.play/play-repository-api-java) for DDD aggregate, inspired the book \n[Implementing Domain-Driven Design](https://www.amazon.com/Implementing-Domain-Driven-Design-Vaughn-Vernon/dp/0321834577) by Vaughn Vernon.\n\n## Example\n\n### JPA\n\nCreate the interface of repository for aggregate\n\n```java\npublic interface AggregateRepository extends Repository\u003cAggregate, UUID\u003e { }\n```\n\nand implement it\n\n```java\npublic class AggregateRepositoryImpl extends JPARepository\u003cAggregate, UUID\u003e implements AggregateRepository {\n\n    @Inject\n    public AggregateRepositoryImpl(@Nonnull JPAApi jpaApi, @Nonnull DatabaseExecutionContext executionContext) {\n        super(jpaApi, executionContext, Aggregate.class);\n    }\n\n    @Override\n    public UUID nextIdentity() {\n        return UUID.randomUUID();\n    }\n}\n```\n\n## Contributors\n\nOther persistence implementations (for _MongoDB_/_Cassandra_/_Redis_) are welcome.\n\n## License\n\nCopyright © Digital Economy League (https://www.digitalleague.ru/).\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaymyr%2Fplay-repository-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaymyr%2Fplay-repository-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaymyr%2Fplay-repository-java/lists"}