This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity perisistence with triggers on child  RSS feed

Rahul Juneja
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a siutation where I need to insert one parent and many lines to it. My problem is when i try to insert one line it works fine with the following code. but when i try to insert more then one line i get the following error which is due to the BEFORE INSERT trigger FOR EACH ROW which is getting fired on lineItems table.

where objLineItems is a populated line data object

Also the relationship i have defined is as follows :



Can you tell me if there is a way in which we can insert multiple lines with trigger on the child table.

[ June 24, 2008: Message edited by: Rahul Juneja ]
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!