microBean JPA (Weld SE)

Tools for using JPA in Weld SE applications.

License

License

GroupId

GroupId

org.microbean
ArtifactId

ArtifactId

microbean-jpa-weld-se
Last Version

Last Version

0.4.2
Release Date

Release Date

Type

Type

jar
Description

Description

microBean JPA (Weld SE)
Tools for using JPA in Weld SE applications.
Project URL

Project URL

https://microbean.github.io/microbean-jpa-weld-se
Project Organization

Project Organization

microBean
Source Code Management

Source Code Management

https://github.com/microbean/microbean-jpa-weld-se/

Download microbean-jpa-weld-se

How to add to project

<!-- https://jarcasting.com/artifacts/org.microbean/microbean-jpa-weld-se/ -->
<dependency>
    <groupId>org.microbean</groupId>
    <artifactId>microbean-jpa-weld-se</artifactId>
    <version>0.4.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.microbean/microbean-jpa-weld-se/
implementation 'org.microbean:microbean-jpa-weld-se:0.4.2'
// https://jarcasting.com/artifacts/org.microbean/microbean-jpa-weld-se/
implementation ("org.microbean:microbean-jpa-weld-se:0.4.2")
'org.microbean:microbean-jpa-weld-se:jar:0.4.2'
<dependency org="org.microbean" name="microbean-jpa-weld-se" rev="0.4.2">
  <artifact name="microbean-jpa-weld-se" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.microbean', module='microbean-jpa-weld-se', version='0.4.2')
)
libraryDependencies += "org.microbean" % "microbean-jpa-weld-se" % "0.4.2"
[org.microbean/microbean-jpa-weld-se "0.4.2"]

Dependencies

compile (2)

Group / Artifact Type Version
org.jboss.weld : weld-spi jar
org.microbean : microbean-development-annotations jar 0.2.3

provided (3)

Group / Artifact Type Version
javax.persistence : javax.persistence-api jar 2.2
javax.transaction : javax.transaction-api jar 1.2
org.microbean : microbean-base-specification pom 0.4.5

runtime (1)

Group / Artifact Type Version
org.microbean : microbean-jpa-cdi jar 0.2.1

test (8)

Group / Artifact Type Version
com.h2database : h2 jar 1.4.197
junit : junit jar 4.12
org.eclipse.persistence : org.eclipse.persistence.jpa jar 2.7.3
org.microbean : microbean-eclipselink-cdi jar 0.2.0
org.microbean : microbean-weld-se-environment pom 0.5.3
org.microbean : microbean-datasource-cdi-hikaricp jar 0.1.4
org.jboss.weld.module : weld-jta jar
org.microbean : microbean-narayana-jta-weld-se jar 0.2.2

Project Modules

There are no modules declared in this project.

microBean JPA (Weld SE)

Build Status Maven Central

The microBean JPA (Weld SE) project brings JPA to standalone, Weld-based, CDI 2.0 programs.

If you are programming in an environment that already has JPA, such as a Java EE application server, then this project is not for you.

If you are writing a Java SE program using CDI, then this project may very well be for you.

This project works in conjunction with the microBean JPA CDI Extension CDI portable extension. The portable extension handles the truly portable aspects of bringing JPA to CDI—and this project completes the process with an implementation of Weld's JpaInjectionServices service provider interface. When the two of these projects are used together, then in terms of end-user-observable effects you can do the following:

public class MyCDIBean {

  @PersistenceContext(unitName = "dev")
  private EntityManager em;

}

That is, you can inject an EntityManager as though your Weld-based standalone CDI 2.0 Java SE program were in fact a Java EE application server (at least with respect to JPA).

This extension is often used in conjunction with the microBean JPA CDI Extension project, the microBean Narayana JTA CDI Extension project and its Weld variant and the microBean DataSource CDI HikariCP Extension.

When you put all these components on your classpath, then any EntityManager injected by being annotated with @PersistenceContext that is involved in the execution of any method annotated with @Transactional will automatically join an automatically-created JTA Transaction, managed by the Narayana transaction engine. The result is EJB-like behavior without an EJB container or application server.

If you have an implementation of Bean Validation on your classpath, then it will be incorporated into this project's overall JPA support as well.

org.microbean

microBean™

At the intersection of Java, Kubernetes and the enterprise.

Versions

Version
0.4.2
0.4.1
0.4.0
0.3.0
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.3
0.1.1
0.1.0