import javax.ejb.*;

public class EntityEJB implements EntityBean {
  protected EntityContext context;

  public long id;
  public java.lang.String name;

  public long getId() {
    return id;
  }

  public java.lang.String getName() {
    return name;
  }

  public void setName(java.lang.String value) {
    this.name = value;
  }

  public void ejbLoad() {
  }

  public void ejbStore() {
  }

  public void ejbActivate() {
  }

  public void ejbPassivate() {
  }

  public void ejbRemove() {
  }

  public void setEntityContext(EntityContext context) {
    this.context = context;
  }

  public void unsetEntityContext() {
    this.context = null;
  }

  public java.lang.Long ejbCreate(long id, String name) throws CreateException {
    this.id = 1;
    this.name = name;
    return new Long(this.id); 
  }

  public void ejbPostCreate(long id, String name) {
  }
  
  public java.lang.Long ejbCreate(String name) throws CreateException {
    this.id = 1;
    this.name = name;
    return new Long(this.id); 
  }

  public void ejbPostCreate(String name) {
  }
};
