FileDocCategorySizeDatePackage
Session2Bean.javaAPI DocJBoss 4.2.12330Fri Jul 13 20:54:44 BST 2007org.jboss.tutorial.packaging.bean

Session2Bean

public class Session2Bean extends Object implements Session2
Comment
author
Bill Burke
version
$Revision: 60233 $

Fields Summary
EntityManager
manager1
EntityManager
manager2
EntityManagerFactory
factory1
EntityManagerFactory
factory2
Constructors Summary
Methods Summary
public Entity1find1FromFactory(int id)

      EntityManager m = factory1.createEntityManager();
      Entity1 one = m.find(Entity1.class, id);
      return one;
   
public Entity1find1FromManager(int id)

      return manager1.find(Entity1.class, id);
   
public Entity2find2FromFactory(int id)

      EntityManager m = factory2.createEntityManager();
      Entity2 two = m.find(Entity2.class, id);
      return two;
   
public Entity2find2FromManager(int id)

      return manager2.find(Entity2.class, id);