{"id":15978110,"url":"https://github.com/ichan-akira/ichan-springdatajpajsonb","last_synced_at":"2026-05-07T15:36:36.252Z","repository":{"id":257016614,"uuid":"857094587","full_name":"ichan-akira/ichan-springdatajpajsonb","owner":"ichan-akira","description":"Using PostgreSQL's JSONB data type in Spring Data JPA.","archived":false,"fork":false,"pushed_at":"2025-06-01T03:39:31.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T01:49:35.250Z","etag":null,"topics":["java","jsonb","postgresql","spring-boot","spring-data-jpa"],"latest_commit_sha":null,"homepage":"https://journal.ichan.moe/spring-data-jpa-with-postgresqls-jsonb","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ichan-akira.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":"2024-09-13T19:43:24.000Z","updated_at":"2025-06-01T03:39:34.000Z","dependencies_parsed_at":"2025-06-15T15:11:01.560Z","dependency_job_id":"5d20b29b-008e-4ab0-8074-fedb23ba5f4a","html_url":"https://github.com/ichan-akira/ichan-springdatajpajsonb","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"5605f3a6036a3c743337ad690abf50811967b6bb"},"previous_names":["ichan-akira/ichan-springdatajpajsonb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ichan-akira/ichan-springdatajpajsonb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichan-akira%2Fichan-springdatajpajsonb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichan-akira%2Fichan-springdatajpajsonb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichan-akira%2Fichan-springdatajpajsonb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichan-akira%2Fichan-springdatajpajsonb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ichan-akira","download_url":"https://codeload.github.com/ichan-akira/ichan-springdatajpajsonb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichan-akira%2Fichan-springdatajpajsonb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32744089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["java","jsonb","postgresql","spring-boot","spring-data-jpa"],"created_at":"2024-10-07T23:05:41.329Z","updated_at":"2026-05-07T15:36:36.233Z","avatar_url":"https://github.com/ichan-akira.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ichan-springdatajpajsonb\n\nWhile using **Spring Boot** with **PostgreSQL**, have you ever needed to retrieve or persist data to `JSONB` column? If your answer is yes, you might want to check [this journal entry](https://journal.ichan.moe/spring-data-jpa-with-postgresqls-jsonb).\n\nThis Sprint Boot project is built using following setting.\n\n| | |\n| --- | --- |\n| Project | Maven |\n| Language | Java |\n| Spring Boot | 3.3.3 |\n\n**Project Metadata:**\n\n| | |\n| --- | --- |\n| Group | `moe.ichan` |\n| Artifact | `ichan-springdatajpajsonb` |\n| Name | ichan-springdatajpajsonb |\n| Description | ichan-springdatajpajsonb |\n| Package Name | `moe.ichan.springdatajpajsonb` |\n| Packaging | Jar |\n| Java | 17 |\n\n**Dependencies:**\n- Lombok\n- Validation\n- PostgreSQL Driver\n- Flyway Migration\n- Spring Data JPA\n- Spring Security\n- Spring Boot Actuator\n- Spring Web\n\nCheck [this project's Spring Initializr](https://start.spring.io/#!type=maven-project\u0026language=java\u0026platformVersion=3.3.3\u0026packaging=jar\u0026jvmVersion=17\u0026groupId=moe.ichan\u0026artifactId=ichan-springdatajpajsonb\u0026name=ichan-springdatajpajsonb\u0026description=ichan-springdatajpajsonb\u0026packageName=moe.ichan.springdatajpajsonb\u0026dependencies=lombok,validation,postgresql,flyway,data-jpa,security,actuator,web).\n\n## Environment Variables\n\nEnvironment variables used to run this project as follows.\n```\nSPRING_POSTGRESQL_DRIVER=org.postgresql.Driver\nSPRING_POSTGRESQL_PASSWORD=YourPostgresqlPassword\nSPRING_POSTGRESQL_URL=jdbc:postgresql://localhost:5432/ichan-springdatajpajsonb?currentSchema=ichan_schema\nSPRING_POSTGRESQL_USERNAME=YourPostgresqlUsername\n```\n\n\u003e [!NOTE]\n\u003e Modify `YourPostgresqlPassword` and `YourPostgresqlUsername` according to your PostgreSQL database credential.\n\u003e \n\u003e You might want to adjust the value of `SPRING_POSTGRESQL_URL` according to your PostgreSQL location. However, please keep using `currentSchema=ichan_schema` in your connection string.\n\n## cURL\n\nAfter you have successfully run the project, you could use following cURL to hit the project's API.\n\n### Create Sample\n```shell\ncurl --location 'http://localhost:8080/api/v1/crud/sample' \\\n--data '{\n    \"sample_id\": \"ID1\",\n    \"sample_name\": \"Sample One\",\n    \"child_jsons\": [\n        \"A\",\n        \"B\"\n    ]\n}'\n```\n\n### Get Sample\n```shell\ncurl --location 'http://localhost:8080/api/v1/crud/sample?sample_name=sample%20one\u0026size=10\u0026page=0'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichan-akira%2Fichan-springdatajpajsonb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fichan-akira%2Fichan-springdatajpajsonb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichan-akira%2Fichan-springdatajpajsonb/lists"}