JPA

66 views
Skip to first unread message

Cristian Chiovari

unread,
Nov 11, 2017, 3:19:04 AM11/11/17
to Eclipse MicroProfile
Hi,

I saw the 1.1 version supports Configuration API 1.0,CDI 1.2,JAX-RS 2.0,JSON-P 1.0.

Still not very clear for me how this can be used with JPA.I saw already some samples on git where
it is used so then why JPA is not part of of the supported API ?

Thanks

Ondro Mihályi

unread,
Nov 11, 2017, 4:41:37 PM11/11/17
to Eclipse MicroProfile
Hi,

The answer is that we don't want to extend complete JavaEE but only bring the best and necessary parts of it.

JPA has been considered to be part of Microprofile and the discussion isn't over.

Currently, there are 2 options to use JPA. Either run your app on a server that supports both JavaEE and Microprofile (most do). Or you can include a JPA implementation like hibernate in you application and use it as in any Java application, with resource local datasource.

I believe the samples you saw show the second option to explain that it's possible and in fact easy, even if JPA isn't a part of Microprofile (yet). In fact, Springboot provides JPA in a similar way.

--Ondro

Message has been deleted

John Clingan

unread,
Nov 13, 2017, 3:57:26 PM11/13/17
to Eclipse MicroProfile
Cristian, FYI, it's probably a good idea to check out the related thread on JNoSQL if you haven't seen it yet.
Reply all
Reply to author
Forward
0 new messages