openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fix_J <fik...@freshthinkingtechnology.com>
Subject Re: Connecting to JPA
Date Fri, 02 Mar 2012 05:45:24 GMT
are the other ways to connect without using entity manafer

On 29.02.2012 23:00, Romain Manni-Bucau [via OpenJPA] wrote:
> Hi,
>
> what do you mean?
>
> Persistence.createEntityManagerFactory()?
>
> @Resource UserTransaction ut; ?
>
> - Romain
>
> 2012/2/29 Fix_J
>
>> 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
> [2]
>> Sent from the OpenJPA Developers mailing list archive at Nabble.com.
>
>>
>
> -------------------------
>
> If you reply to this email, your message will be added to the
> discussion below:
> 
> http://openjpa.208410.n2.nabble.com/Connecting-to-JPA-tp7328387p7330662.html
> [3]
>  To unsubscribe from Connecting to JPA, click here [4].
>  NAML [5]
>
> Links:
> ------
> [1]
> 
> http://freshthinkingtechnology.com/user/SendEmail.jtp?type=node&node=7330662&i=0
> [2]
> 
> http://openjpa.208410.n2.nabble.com/Connecting-to-JPA-tp7328387p7328387.html
> [3]
> 
> http://openjpa.208410.n2.nabble.com/Connecting-to-JPA-tp7328387p7330662.html
> [4]
> 
> http://openjpa.208410.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code|+|amp|+|node=7328387|+|amp|+|code=ZmlraWxlQGZyZXNodGhpbmtpbmd0ZWNobm9sb2d5LmNvbXw3MzI4Mzg3fDI4ODkxMzIyMQ==
> [5]
> 
> http://openjpa.208410.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer|+|amp|+|id=instant_html%21nabble%3Aemail.naml|+|amp|+|base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace|+|amp|+|breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml



--
View this message in context: http://openjpa.208410.n2.nabble.com/Connecting-to-JPA-tp7328387p7335519.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message