{"id":23095068,"url":"https://github.com/microbean/microbean-jpa-cdi","last_synced_at":"2025-09-21T02:06:24.090Z","repository":{"id":57745172,"uuid":"161540408","full_name":"microbean/microbean-jpa-cdi","owner":"microbean","description":"A CDI portable extension bringing JPA to CDI 2.0-based Java SE programs.","archived":false,"fork":false,"pushed_at":"2019-03-06T23:44:38.000Z","size":1598,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T00:02:16.952Z","etag":null,"topics":["cdi","cdi-extension","cdi2","cdi20","java","jpa","portable-extension"],"latest_commit_sha":null,"homepage":"https://microbean.github.io/microbean-jpa-cdi","language":"Java","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/microbean.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}},"created_at":"2018-12-12T20:20:34.000Z","updated_at":"2019-03-06T23:36:34.000Z","dependencies_parsed_at":"2022-08-30T12:31:23.859Z","dependency_job_id":null,"html_url":"https://github.com/microbean/microbean-jpa-cdi","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/microbean/microbean-jpa-cdi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbean%2Fmicrobean-jpa-cdi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbean%2Fmicrobean-jpa-cdi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbean%2Fmicrobean-jpa-cdi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbean%2Fmicrobean-jpa-cdi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microbean","download_url":"https://codeload.github.com/microbean/microbean-jpa-cdi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbean%2Fmicrobean-jpa-cdi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263421888,"owners_count":23464046,"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":["cdi","cdi-extension","cdi2","cdi20","java","jpa","portable-extension"],"created_at":"2024-12-16T22:19:21.836Z","updated_at":"2025-09-21T02:06:19.069Z","avatar_url":"https://github.com/microbean.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# microBean JPA CDI Extension\n\n[![Build Status](https://travis-ci.org/microbean/microbean-jpa-cdi.svg?branch=master)](https://travis-ci.org/microbean/microbean-jpa-cdi)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.microbean/microbean-jpa-cdi/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.microbean/microbean-jpa-cdi)\n\nThe microBean JPA CDI Extension brings JPA to CDI.\n\nIf you are programming in an environment that already has JPA, such as\na Java EE application server, then this extension is not for you.\n\nIf you are writing a Java SE program using CDI, then this extension\nmay very well be for you.\n\nIn terms of end-user-observable effects, this extension allows you to\ndo the following:\n\n```\npublic class MyCDIBean {\n\n  @PersistenceContext(unitName = \"dev\")\n  private EntityManager em;\n\n}\n```\n\nThat is, you can inject an `EntityManager` as though your CDI-based\nstandalone Java SE program were in fact a Java EE application server\n(at least with respect to JPA).\n\nThis extension jumps through a few hoops to ensure that everything is\ndone as properly as possible.\n\nSpecifically, any `DataSource`s behind the scenes are sourced from CDI\nitself as just regular CDI beans.  Additionally, if your CDI\nimplementation has transactional support, this extension will leverage\nit.  Yes, that means your `persistence.xml` can specify transactional\ndata sources.\n\nThis extension is often used in conjunction with the [microBean JPA\nWeld SE\nExtension](https://github.com/microbean/microbean-jpa-weld-se/), the\n[microBean Narayana JTA CDI\nExtension](https://github.com/microbean/microbean-narayana-jta-cdi)\nproject and its [Weld\nvariant](https://github.com/microbean/microbean-narayana-jta-weld-se),\nand the [microBean DataSource CDI HikariCP\nExtension](https://microbean.github.io/microbean-datasource-cdi-hikaricp/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobean%2Fmicrobean-jpa-cdi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrobean%2Fmicrobean-jpa-cdi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobean%2Fmicrobean-jpa-cdi/lists"}