3 Replies Latest reply on Feb 16, 2004 8:55 AM by julien.dubois

    EJB Finder problem

    ericmacau

      Hello,

      How can I define the query if I want to define a EJB finder with the signature as following:

      signature="java.util.Set findByPlayerAndSeason(Player p, Season s)"
      query=" ....???..."

      How can I define the Query to get all the Goals of a specific Player and Season ???????


      
      +------+ +----------+
      | Goal |-------------| Player |
      +------+ * 1+----------+
       *|
       |
       1|
      +---------+
      | Season |
      +---------+
      
      
      Player 1:N Goal
      Season 1:N Goal