tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <>
Subject [jira] [Commented] (OPENEJB-2120) JPA 2.1 Support
Date Thu, 29 Oct 2015 09:36:27 GMT


Romain Manni-Bucau commented on OPENEJB-2120:

Think a copy/paste failed in your comment but you will always get a JtaEntityManager from
openejb using @PersistenceContext. If you want to inject the unwrapped hibernate impl just
add to your code a:

public class MyEmProducer {
    @PersistenceContext(unitName = DBDefinitions.ORACLE_PERSISTENCE_UNIT)  EntityManager oracleEntityManager;
    @Produces @Named EntityManager em() {  return em; }

And use instead of @PersistenceContext:

EntityManager em;

> JPA 2.1 Support
> ---------------
>                 Key: OPENEJB-2120
>                 URL:
>             Project: OpenEJB
>          Issue Type: Wish
>          Components: general
>            Reporter: Pascal Kn├╝ppel
>            Assignee: Romain Manni-Bucau
>              Labels: jpa21
> It would be really great if support for JPA 2.1 was provided. Is there any chance that
support for this api level will come soon?
> In order to keep my Unit-Tests alive I need to downgrade all the requests to the database
to jpa 2.0 which makes working on my project very difficult...

This message was sent by Atlassian JIRA

View raw message