ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Maves" <nathan.ma...@gmail.com>
Subject Re: iBatis, updates
Date Tue, 10 Oct 2006 19:20:05 GMT
Please post questions like these to the community email list.

On 10/10/06, Nathan Maves <Nathan.Maves@sun.com> wrote:
>
>
>
> Begin forwarded message:
>
> *From: *"Pecelis, Sergio" <PecelisS@toepfer.com>
> *Date: *October 10, 2006 1:11:40 PM MDT
> *To: *Nathan.Maves@Sun.COM
> *Subject: **iBatis, updates*
>
> Hi, i saw your how_to in
> http://wiki.apache.org/ibatis/How_do_I_use_a_Custom_Type_Handler_with_complex_property_%28Type_Safe_Enumeration%29
>
>
> I have a problem and hope you can help me.
>
>
> I'm new at iBatis.
>
> I do not know how to update a table with an object that has another object
> as property.
>
>
> For example:
>
>
> <update id="updateObj1" parameterClass="Obj1">
>
>     UPDATE DB."TBL" SET
>
>     ID= #obj2.id#
>
>     DESC = #obj2.desc#
>
>     WHERE ID = #obj2.id#
>
> </update>
>
>
> the table would be:
>
> TBL
>
>       ID:INTEGER
>
>       DESC:VARCHAR
>
>
> The class Obj1 has the property obj2 from Obj2 class, which has this
>
> properties: id:int and desc:String.
>
>
> I read something about using parameterMap but I need an example. Thanks
> for helping me!
>
>
> ___________________________________________
> CONFIDENTIALITY NOTICE
> This e-mail and any files and/or attachments transmitted with it are
> strictly confidential and intended solely for the use of the addressee. They
> may contain privileged and confidential information and, if you are not the
> intended recipient, you are hereby notified that any dissemination or
> copying and any use or disclosure of the information contained therein is
> strictly prohibited and may be illegal. If you are not the intended
> recipient, please notify mail@toepfer.com immediately and delete this
> message and any files and/or attachments thereto.
>
>
>

Mime
View raw message