From 2334c06809db3ed20c07c827e555440338282749 Mon Sep 17 00:00:00 2001 From: Lisa Jamen <31409174+ljamen@users.noreply.github.com> Date: Tue, 9 Jun 2020 13:55:20 -0400 Subject: [PATCH 1/2] added link to mp jpa guide and API --- docs/mp/jpa/01_introduction.adoc | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/mp/jpa/01_introduction.adoc b/docs/mp/jpa/01_introduction.adoc index db10ec1c368..22209ed5582 100644 --- a/docs/mp/jpa/01_introduction.adoc +++ b/docs/mp/jpa/01_introduction.adoc @@ -16,11 +16,24 @@ /////////////////////////////////////////////////////////////////////////////// -= JPA += Helidon MP JPA :toc: :toc-placement: preamble :spec-name: Jakarta Persistence :description: {spec-name} support in Helidon MP :keywords: helidon, mp, microprofile, persistence, database +:h1Prefix: MP + +== Overview +Helidon MicroProfile’s JPA support goes beyond the usual surface-level integration to give you the kind of managed support you are probably used to from the Java EE application server days. It does it transparently and using familiar tools. + + + + +== Next Steps +Learn more about the +https://jcp.org/en/jsr/detail?id=338[Java Persistence API (JPA)] + +Configure and use the Java Persistence API (JPA) from +within a Helidon MP application. <>. -== This page is Under Construction and will be available soon From 7fd323a71f3249eb483e3492ac0a8970de2a8e98 Mon Sep 17 00:00:00 2001 From: Lisa Jamen <31409174+ljamen@users.noreply.github.com> Date: Wed, 10 Jun 2020 10:04:34 -0400 Subject: [PATCH 2/2] updated with Laird's changes --- docs/mp/jpa/01_introduction.adoc | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/mp/jpa/01_introduction.adoc b/docs/mp/jpa/01_introduction.adoc index 22209ed5582..92c5e6cedcf 100644 --- a/docs/mp/jpa/01_introduction.adoc +++ b/docs/mp/jpa/01_introduction.adoc @@ -25,7 +25,25 @@ :h1Prefix: MP == Overview -Helidon MicroProfile’s JPA support goes beyond the usual surface-level integration to give you the kind of managed support you are probably used to from the Java EE application server days. It does it transparently and using familiar tools. +Helidon MP supports JPA in much the same way that Java EE application +servers do, but with much less weight. If you come from a Java EE +background, you'll feel right at home: you work with JPA in Helidon MP +in all the ways that you're familiar with. + +For example, in Helidon MP's JPA integration, you can work with a +fully managed `EntityManager` by injecting it in the same way you +would in a Java EE application server: + +[source,java] +==== +@PersistenceContext +private EntityManager em; +==== + +The Jakarta Persistence API is a specification that governs how Java +objects map to relational databases, and has existed since 2006. +Hibernate and Eclipselink, two of the most popular JPA +implementations, are supported by Helidon MP JPA.