openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Connecting to JPA
Date Wed, 29 Feb 2012 20:59:27 GMT
Hi,

what do you mean?

Persistence.createEntityManagerFactory()?

@Resource UserTransaction ut; ?



- Romain


2012/2/29 Fix_J <fikile@freshthinkingtechnology.com>

> How do you connect to JPa manually?
>  Not using a code like this e.g
>
> public class LocalBean  implements LocalService
> {
>        @PersistenceContext(unitName="com.landreform.model")
>        EntityManager em;
>        @Override
>
>        public LandUser getUserById(long id) throws RemoteException
> {
>                LandUser landUser = em.find(LandUser.class, id);
>                return landUser;
>        }
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Connecting-to-JPA-tp7328387p7328387.html
> Sent from the OpenJPA Developers mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message