ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Butler <jeffgbut...@gmail.com>
Subject Re: mapping insert of object graph
Date Thu, 18 Mar 2010 15:58:41 GMT
Basically it's manual because SQL doesn't have a concept like join on
insert.  So you usually write a dao or service method like this:

insertMasterRecord();
for each detail record {
  insertDetailRecord();
}
commit();

Jeff Butler


On Thu, Mar 18, 2010 at 8:05 AM, Jon Finanger <jon@finanger.no> wrote:
> Any way to map insertion of an object graph ?
> Or is manually insertion the only way....
>
> -Jon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message