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

    Help for Entity Query

    Gus Gu Expert

      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