1 Reply Latest reply on Mar 1, 2003 7:30 AM by Lars Bergmann

    How to "find" by multiple PKs?

    Luiz-Otavio Zorzella Newbie

      Hi,

      is there any way to have a finder method that returns a Collection, with a WHERE clause that accepts an indefinite number of PKs? Something that would allow me to do something like:

      List pks = new Vector ();
      pks.add ("1");
      pks.add ("2");
      Collection c = myHome.findByPks (pks);

      Thanks,

      Zorzella