db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Braeuchi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OJB-23) RemovalAwareCollection tries to delete non persistent objects
Date Wed, 20 Apr 2005 17:02:23 GMT
     [ http://issues.apache.org/jira/browse/OJB-23?page=comments#action_63294 ]
Jakob Braeuchi commented on OJB-23:

afterStore only checks the pk of the top object to be removed. 
child objects without valid pks will still throw an exception. 

PD#doDelete no longer throws an exception, it only logs the error

> RemovalAwareCollection tries to delete non persistent objects
> -------------------------------------------------------------
>          Key: OJB-23
>          URL: http://issues.apache.org/jira/browse/OJB-23
>      Project: OJB
>         Type: Bug
>   Components: PB-API
>     Versions: 1.0.4, 1.1 CVS
>     Reporter: Jakob Braeuchi
>     Assignee: Jakob Braeuchi
>      Fix For: 1.0.x CVS, 1.1 CVS

> When adding an object to a RemovalAwareCollection and deleting
> before saving the collection, ojb tries to delete the non stored object.
> This results in an OptimisticLockException because OJB is
> trying to delete the object that was never in the table. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org

View raw message