ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reub...@sonic.net
Subject Re: chaining inserts
Date Tue, 11 Oct 2005 19:34:18 GMT
Is supporting this a planned future feature? Just curious.

Thanks

> The only way is  to iterate through subobjects on the java side of
> things and explicitly make sqlMap insert calls.
>
> Larry
>
>
> On 10/11/05, reubenf@sonic.net <reubenf@sonic.net> wrote:
>> Hello,
>>
>> Using resultMaps, I can load sub-objects of a particular object
>> automagically, using the "select" attribute. E.g.
>>
>> <result property="subobjects" column="myId"
>> select="SubObject.getSubObjectsByMe"/>
>>
>> Is there a converse construct for saving objects? I.e., if I were to
>> save,
>> can I do something like:
>>
>> <parameter property="subobjects" insert="SubObject.updateSubObject"/>
>>
>> ?
>>
>> Or is the best way to iterate through subobjects on the java side of
>> things, explicitly make sqlMap insert calls per subobject, and run
>> everything in one batch??
>>
>> Thanks
>> Reuben
>>
>>
>>
>>
>
>



Mime
View raw message