retrive data from Multiple tables using SqlTemplate

From: Sami Mohammed (SMOHAMME..ndependenthealth.com)
Date: Tue Mar 22 2005 - 19:49:46 EST

  • Next message: chrisd: "deadlock between commit and external event"

    Hi

    Can retrive data from multiple tables using SQLTemplate

    example
    i have 3 tables TableA,Table B, TableC.
     can i wirte SQLTemplate like this:
    String sql ="select a. name, b.Des, c.dateField from TableA a,TableB b, TableC c, where a.Pid = b.Pid"
    SQLTemplate query = new SQLTemplate(TableA.class, sql);

    above statement is correct or not.

    Thanks
    sami

    CONFIDENTIALITY NOTICE. This e-mail and attachments, if any, may contain confidential information which is privileged and protected from disclosure by Federal and State
    confidentiality laws rules and regulations. This e-mail and attachments, if any, are intended for the designated addressee only. If you are not the designated addressee, you
    are hereby notified that any disclosure, copying, or distribution of this e-mail and its attachments, if any, may be unlawful and may subject you to legal consequences. If you
    have received this e-mail and attachments in error, please contact Independent Health immediately at (716) 631-3001 and delete the e-mail and its attachments from your
    computer. Thank you for your attention



    This archive was generated by hypermail 2.0.0 : Tue Mar 22 2005 - 19:50:13 EST