FileDocCategorySizeDatePackage
CustomerDAOBean.javaAPI DocJBoss 4.2.11715Fri Jul 13 20:55:32 BST 2007org.jboss.tutorial.mcdeploy

CustomerDAOBean

public class CustomerDAOBean extends Object implements CustomerDAOLocal, CustomerDAORemote
Comment
author
Bill Burke
version
$Revision: 60233 $

Fields Summary
private EntityManager
em
Constructors Summary
Methods Summary
public intcreateCustomer(java.lang.String name)

      Customer cust = new Customer();
      cust.setName(name);
      em.persist(cust);
      return cust.getId();
   
public CustomerfindCustomer(int id)

      return em.find(Customer.class, id);