ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <lmead...@apache.org>
Subject Re: composite keys
Date Sat, 07 Jan 2006 13:24:06 GMT
The definition of a parameter map or parameter class is optional.

If you have this sql in a mapped statement:

select foo from bar where baz=#baz#

...iBATIS will use reflection to examine the parameter to see if it is
a map or a bean with a key (in the case of a map) or a property (in
the case of a bean) named baz.


On 1/6/06, DaqiQian2@aol.com <DaqiQian2@aol.com> wrote:
> Since the sql mapping in my previous email is too complicated, let me ask
> the same question in a different way.
> There is an example on page 29-30 of IBATIS DATA MAPPER from iBATIS web
> site. getOrderPayments doesn't have parameterMap or inline parameter map
> (parameterClass) specified> How are the  values of itemId and custId passed
> to getOrderPayments?
> Thanks,
> Tony

View raw message