When using indirection M:N while attempting to store a record and an exception is 
encountered, the changes made to the associated object are not rolledback. This is 
even when using beginTransaction() and abortTransaction() in the PB instance... 
Actually an exception is never thrown by the broker instance, it is only outputted to 
the system's console.  Is there a reason for this?

I also noticed that the storeMtoNImplementor() method in the PB implementation class 
doesn't throw any exceptions but ignores them instead.

code goes something like 
try
        {
            dbAccess.executeUpdateSQL(insertStmt, cld);
        }
        catch (PersistenceBrokerException e)
        {
            // attempts to store existing entries are ignored
        }

there is a comment there saying "attempts to store existing entries are ignored" .  
From my understanding a delete of previous entries is ran before performing the 
storeMToN so why should any exception's be ignored here in this case?

Any info would be appreciated

Thanks,
Dan



<<winmail.dat>>

--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to