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.
>
|