{"id":23095054,"url":"https://github.com/microbean/microbean-jpa-weld-se","last_synced_at":"2025-04-03T19:26:07.425Z","repository":{"id":80768371,"uuid":"140337648","full_name":"microbean/microbean-jpa-weld-se","owner":"microbean","description":"Integration of JPA into CDI 2.0 SE environments implemented by Weld.","archived":false,"fork":false,"pushed_at":"2019-03-04T19:03:38.000Z","size":2124,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T17:04:02.297Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://microbean.github.io/microbean-jpa-weld-se","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-09T20:18:04.000Z","updated_at":"2022-11-14T16:14:58.000Z","dependencies_parsed_at":"2024-08-02T16:18:55.535Z","dependency_job_id":null,"html_url":"https://github.com/microbean/microbean-jpa-weld-se","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbean%2Fmicrobean-jpa-weld-se","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbean%2Fmicrobean-jpa-weld-se/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbean%2Fmicrobean-jpa-weld-se/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbean%2Fmicrobean-jpa-weld-se/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microbean","download_url":"https://codeload.github.com/microbean/microbean-jpa-weld-se/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247063811,"owners_count":20877506,"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":[],"created_at":"2024-12-16T22:19:20.548Z","updated_at":"2025-04-03T19:26:07.419Z","avatar_url":"https://github.com/microbean.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# microBean JPA (Weld SE)\n\n[![Build Status](https://travis-ci.org/microbean/microbean-jpa-weld-se.svg?branch=master)](https://travis-ci.org/microbean/microbean-jpa-weld-se)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.microbean/microbean-jpa-weld-se/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.microbean/microbean-jpa-weld-se)\n\nThe microBean JPA (Weld SE) project brings JPA to standalone,\n[Weld](http://weld.cdi-spec.org/)-based, CDI 2.0 programs.\n\n**If you are programming in an environment that already has JPA, such\nas a Java EE application server, then this project is not for you.**\n\nIf you are writing a Java SE program using CDI, then this project may\nvery well be for you.\n\nThis project works in conjunction with the [microBean JPA CDI\nExtension](https://github.com/microbean/microbean-jpa-cdi/) CDI\nportable extension.  The portable extension handles the truly portable\naspects of bringing JPA to CDI\u0026mdash;and this project completes the\nprocess with [an\nimplementation](https://microbean.github.io/microbean-jpa-weld-se/apidocs/org/microbean/jpa/weld/JpaInjectionServices.html)\nof Weld's\n[`JpaInjectionServices`](https://docs.jboss.org/weld/javadoc/2.4/weld-spi/org/jboss/weld/injection/spi/JpaInjectionServices.html)\nservice provider interface.  When the two of these projects are used\ntogether, then in terms of end-user-observable effects you can do the\nfollowing:\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 Weld-based\nstandalone CDI 2.0 Java SE program were in fact a Java EE application\nserver (at least with respect to JPA).\n\nThis extension is often used in conjunction with the [microBean JPA\nCDI Extension](https://github.com/microbean/microbean-jpa-cdi/)\nproject, the [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\nWhen you put all these components on your classpath, then any\n`EntityManager` injected by being annotated with\n[`@PersistenceContext`](https://javaee.github.io/javaee-spec/javadocs/javax/persistence/PersistenceContext.html)\nthat is involved in the execution of any method annotated with\n[`@Transactional`](https://javaee.github.io/javaee-spec/javadocs/javax/transaction/Transactional.html)\nwill automatically join an automatically-created JTA `Transaction`,\nmanaged by the [Narayana transaction engine](http://narayana.io/).\nThe result is EJB-like behavior without an EJB container or\napplication server.\n\nIf you have an implementation of [Bean\nValidation](https://beanvalidation.org/) on your classpath, then it\nwill be incorporated into this project's overall JPA support as well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobean%2Fmicrobean-jpa-weld-se","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrobean%2Fmicrobean-jpa-weld-se","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobean%2Fmicrobean-jpa-weld-se/lists"}