// Copyright © 2002 by Apple Computer, Inc., All Rights Reserved.
//
// You may incorporate this Apple sample code into your own code
// without restriction. This Apple sample code has been provided "AS IS"
// and the responsibility for its operation is yours. You may redistribute
// this code, but you are not permitted to redistribute it as
// "Apple sample code" after having made changes.

shell> cat HelloEntity.java 
import java.rmi.RemoteException;
import javax.ejb.*;

public interface HelloEntity extends EJBObject {

    public String getEmail() throws RemoteException;
    public void setEmail(String type) throws RemoteException;
}

shell> cat HelloEntityHome.java import java.rmi.RemoteException; import javax.ejb.*; public interface HelloEntityHome extends EJBHome { public HelloEntity create(String name) throws CreateException, RemoteException; public HelloEntity findByPrimaryKey(String pk) throws FinderException, RemoteException; }