3 Replies Latest reply on Feb 16, 2006 11:10 PM by gus888

    Help for Entity Query

    gus888

      Hi Folks,

      I am new in EJB, and have a question about how to load a null parent_id into its Entity bean. I have a table as follows:
      CATEGORY

      +---+---------+----------+
      |ID |NAME |PARENT_ID |
      |1 |Computer |Null |
      |2 |PC |1 |
      |3 |Mac |1 |


      I want to load the first computer row with null parent_id into entity bean Category, but I don't know how to create an em.createQuery("..."). Any help will be appreciated. Thank you in advance.

      GUS