package org.laughingpanda.ejb_migration_example.ejb; import javax.ejb.EJBHome; import javax.ejb.CreateException; import javax.ejb.FinderException; import java.rmi.RemoteException; import java.util.Collection; /** * @author Timo Rantalaiho */ public interface PersonEntityHome extends EJBHome { PersonEntity create(Long id, String userName, String firstName, String lastName) throws RemoteException, CreateException; PersonEntity findByPrimaryKey(Long key) throws FinderException, RemoteException; Collection findBySearchTerm(String searchTerm) throws FinderException, RemoteException; }