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

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924097#3924097

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924097


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to