{"id":18048061,"url":"https://github.com/ivangfr/springboot-jpa-studies","last_synced_at":"2025-04-10T09:48:29.326Z","repository":{"id":54449419,"uuid":"156018102","full_name":"ivangfr/springboot-jpa-studies","owner":"ivangfr","description":"The goal of this project is to study JPA Batch Processing (i.e, insert / update / delete a set of records in a single command) and JPA Locking.","archived":false,"fork":false,"pushed_at":"2024-12-17T22:28:25.000Z","size":763,"stargazers_count":11,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T08:42:33.878Z","etag":null,"topics":["database-batch","database-locking","docker","java","mysql","postgresql","spring-boot","spring-data-jpa","spring-web-mvc","springdoc-openapi","testcontainers"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivangfr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"ivangfr"}},"created_at":"2018-11-03T19:47:01.000Z","updated_at":"2025-02-14T12:21:33.000Z","dependencies_parsed_at":"2023-01-22T15:31:10.264Z","dependency_job_id":"8ce87064-69fd-4e77-bbef-1450bbaf3f73","html_url":"https://github.com/ivangfr/springboot-jpa-studies","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/ivangfr%2Fspringboot-jpa-studies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangfr%2Fspringboot-jpa-studies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangfr%2Fspringboot-jpa-studies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangfr%2Fspringboot-jpa-studies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivangfr","download_url":"https://codeload.github.com/ivangfr/springboot-jpa-studies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248197320,"owners_count":21063619,"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":["database-batch","database-locking","docker","java","mysql","postgresql","spring-boot","spring-data-jpa","spring-web-mvc","springdoc-openapi","testcontainers"],"created_at":"2024-10-30T20:11:07.716Z","updated_at":"2025-04-10T09:48:29.302Z","avatar_url":"https://github.com/ivangfr.png","language":"Java","funding_links":["https://github.com/sponsors/ivangfr"],"categories":[],"sub_categories":[],"readme":"# springboot-jpa-studies\n\nThe goal of this project is to study `JPA Batch Processing` (i.e, insert/update/delete a set of records in a single command) and `JPA Locking`.\n\n## Proof-of-Concepts \u0026 Articles\n\nOn [ivangfr.github.io](https://ivangfr.github.io), I have compiled my Proof-of-Concepts (PoCs) and articles. You can easily search for the technology you are interested in by using the filter. Who knows, perhaps I have already implemented a PoC or written an article about what you are looking for.\n\n## Modules\n\n- ### [jpa-batch](https://github.com/ivangfr/springboot-jpa-studies/tree/master/jpa-batch#jpa-batch)\n- ### [jpa-locking](https://github.com/ivangfr/springboot-jpa-studies/tree/master/jpa-locking#jpa-locking)\n\n## Prerequisites\n\n- [`Java 21+`](https://www.oracle.com/java/technologies/downloads/#java21)\n- Some containerization tool [`Docker`](https://www.docker.com), [`Podman`](https://podman.io), etc.\n\n## Start Environment\n\n- Open one terminal and inside the `springboot-jpa-studies` root folder run:\n  ```\n  docker compose up -d\n  ```\n\n- Wait for Docker containers to be up and running. To check it, run:\n  ```\n  docker ps -a\n  ```\n\n## Useful Commands\n\n- **MySQL**\n\n  - Run `MySQL` interactive terminal (`mysql`)\n    ```\n    docker exec -it -e MYSQL_PWD=secret mysql mysql -uroot --database studiesdb\n    ```\n    \u003e Type `exit` to exit\n    \n- **PostgreSQL**\n\n  - Run `Postgres` interactive terminal (`psql`)\n    ```\n    docker exec -it postgres psql -U postgres -d studiesdb\n    ```\n    \u003e Type `\\q` to exit\n\n## Shutdown Environment\n\n- In a terminal, make sure you are inside the `springboot-jpa-studies` root folder;\n\n- To stop and remove docker compose containers, networks and volumes run:\n  ```\n  docker compose down -v\n  ```\n\n## Running tests\n\n- In a terminal, make sure you are in the `springboot-jpa-studies` root folder;\n\n- The commands below will run the test cases of all modules. In order to run just the tests of a specific module check the module README;\n\n  During the tests, [`Testcontainers`](https://testcontainers.com) starts automatically Docker containers of the databases before the tests begin and shuts the containers down when the tests finish;\n\n  - **Using MySQL**\n    ```\n    ./mvnw clean test -DargLine=\"-Dspring.profiles.active=mysql-test\"\n    ```\n\n  - **Using PostgreSQL**\n    ```\n    ./mvnw clean test -DargLine=\"-Dspring.profiles.active=postgres-test\"\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivangfr%2Fspringboot-jpa-studies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivangfr%2Fspringboot-jpa-studies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivangfr%2Fspringboot-jpa-studies/lists"}