1 Reply Latest reply on May 4, 2004 10:11 AM by martin0

    java.util.Date and EJB-QL

    mmqwertz

      Hi!

      I read in several books, datatype Date is not supported in EJB-QL.

      I tried what's happening when using datatype java.util.Date in CMP Entity-Beans implementing a person with birthday and I could use queries like "findByBirthday", "findWhereBirthdayBefore", ...

      In the jbossjaws I saw "java.util.Date" is mapping to "DATETIME" im mysql and everything (except of milliseconds, but I don't mind that) is stored correctly and I can search for it using EJB-QL.

      So what exactly does "not supported" for Datatype "Date" mean? What are the not supported queries?

      Thanks for your answer!
      Martin