Sorry for that,

Let's explain myself using a example:

A finder method in the ejb home: findAccountsForCustomer(Customer customer),
which customer and account has a 1-n relationship, customer is a cmr field
in account bean, the query in jbosscmp-jdbc.xml:

        <query>
          <query-method>
            <method-name>findAccountsForCustomer</method-name>
            <method-params>
                 <method-param>Customer</method-param>
            </method-params>
          </query-method>
          <declared-sql>
             ??????????
          </declared-sql>
        </query>

The question is how I take the parameter, customer in the declared-sql, how
can write this kind of query?



-----Original Message-----
From: Dain Sundstrom [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 4:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Boolean in the ejb-ql has sql exception


Arthur Wang wrote:

> Thanks Dain,
> 
> But where can I get the JBossCMP documentation(free or not free) you
> mentioned? 


http://www.jboss.org/docs/

> and first, could you please tell me if I can write declared-sql
> with a cmr field as a parameter?


I have no idea what you are talking about.  Parameters are real Objects 
and cmr fields are an idea (concept, abstraction).  Can you be way more 
specific?

-dain



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to