ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reub...@sonic.net
Subject chaining inserts
Date Tue, 11 Oct 2005 18:15:33 GMT
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