0 Replies Latest reply on Aug 5, 2003 4:26 PM by papick

    EJBQL query to find persons by birthday

    papick

      as far as i understood from the spec, there is no way to get all persons having birthday on june if i have the birthday as a date object.

      the solution i am targeting to is to create a second field, called birthday2, where i store the day and month as a integer, something like: month*100 + day.
      i would update this field on every ejbstore and change my finders to search for values between 600 and 699 ;-)))

      any suggestion on how to solve this problem in a more elegant way?