FileDocCategorySizeDatePackage
CustomerDAOBean.javaAPI DocJBoss 4.2.11720Fri Jul 13 20:55:30 BST 2007org.jboss.tutorial.dirbyresource

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);