Hi,
is orion's implementation of the findByXXX not implemented?

orion-ejb-jar.xml :
 ----------------
   ...
    <finder-method query=""> 
      <method>
        <ejb-name>ejb/Task</ejb-name>
        <method-name>findAll</method-name>
        <method-params></method-params>
      </method>
    </finder-method>
    <finder-method partial="true" query="$1 = $username">
       <method>
          <ejb-name>ejb/Task</ejb-name>
          <method-name>findByUsername</method-name>
          <method-params>java.util.String</method-params>
       </method>
    </finder-method>
  </entity-deployment>

TaskHome.java :
---------------
public interface TaskHome  extends javax.ejb.EJBHome {
    
  ...
    public Task findByPrimaryKey(String name) throws RemoteException,
FinderException;
    public Collection findByUsername(String name) throws
RemoteException, FinderException; 
    public Collection findAll() throws RemoteException, FinderException;
}

But findByUsername(String name) is the same as findAll() ?

Reply via email to