User: forder  
  Date: 00/09/18 16:54:55

  Modified:    src/main/org/jboss/ejb/plugins/jaws/jdbc
                        JDBCFindEntityCommand.java
  Log:
  findByPrimaryKey fixed to throw ObjectNotFoundException, as advised by Pat 
McNerthney.
  
  Revision  Changes    Path
  1.4       +3 -3      
jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCFindEntityCommand.java
  
  Index: JDBCFindEntityCommand.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCFindEntityCommand.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JDBCFindEntityCommand.java        2000/09/09 23:23:45     1.3
  +++ JDBCFindEntityCommand.java        2000/09/18 23:54:55     1.4
  @@ -29,7 +29,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Joe Shevland</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Justin Forder</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    */
   public class JDBCFindEntityCommand implements JPMFindEntityCommand
   {
  @@ -85,8 +85,8 @@
            return id;
         } else
         {
  -         throw new FinderException("Object with primary key " + id +
  -                                   " not found in storage");
  +         throw new ObjectNotFoundException("Object with primary key " + id +
  +                                           " not found in storage");
         }
      }
   }
  
  
  

Reply via email to