Hi<br><br>Is there any specific reason for not removing any successful action from the action list.<br><br>In Method of class org.hibernate.engine.ActionQueue<br><br> private void executeActions(List list) throws HibernateException {<br>
int size = list.size();<br> for ( int i = 0; i < size; i++ ) {<br> execute( (Executable) list.get(i) );<br> }<br> list.clear();<br> session.getBatcher().executeBatch();<br>
}<br><br>Why is list being cleared in one go rather then removing after every action. something like this<br><br><br>
private void executeActions(List list) throws HibernateException {<br> for(Iterator actionIter = list.iterator();actionIter.hasNext();){<br>
execute( (Executable) actionIter .next());<br> actionIter.remove();<br> }<br>
session.getBatcher().executeBatch();<br>
}<br><br><br>Reasons i am facing issues due to this is following:<br><br>For Example in ActionQueue i have three EntityUpdateAction and my Entity is versioned <br> <br>and my 3rd EntityUpdateAction Fails and say i can recover from this failure programmatically and i try to flush again. This time even my first Action will fail as it would have already updated Version No.<br>
<br>And even theoretically why will i want to retry a Successful Action.<br><br>I think after action is successfully executed it should be removed from the list.<br><br>Regards<br>Pavitar<br> <br clear="all"><br>-- <br>Pavitar Singh<br>
Blog: <a href="http://blog.webscale.co.in">http://blog.webscale.co.in</a><br>