openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fix_J <fik...@freshthinkingtechnology.com>
Subject Connecting to JPA
Date Wed, 29 Feb 2012 08:12:54 GMT
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
View raw message