ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Chew <chew.a...@gmail.com>
Subject Re: Association/Inbed Object question
Date Sat, 26 Nov 2005 07:10:27 GMT
Thanks, Spatel
      I am trying, but it seems some unclear to me. would you pls show me a
piece of example
based on my code framgemet?

alex


On 11/26/05, Sheshadri Patel <meeturpatel@gmail.com> wrote:
>
>
> Hi,
>
>  #handleby.id# will be treated as getHandleby().getId().
>
> So use either #handleby# or #id# in the query mapping statement and map
> the fields in the insert statement correctly.
>
> <insert id="insertAccount" parameterClass="account">
> insert into ACCOUNT (ID,NAME, DEPOSITE, FK_HANDLEBY)
> values (#id#, #name#, #deposit#, #handleby#)
> </insert>
>
> Tx,
>
> Spatel.
>
>

Mime
View raw message