You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by "Jakob Braeuchi (JIRA)" <ji...@apache.org> on 2005/04/16 12:04:57 UTC

[jira] Created: (OJB-23) RemovalAwareCollection tries to delete non persistent objects

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.1 CVS, 1.0.4    
    Reporter: Jakob Braeuchi


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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (OJB-23) RemovalAwareCollection tries to delete non persistent objects

Posted by "Jakob Braeuchi (JIRA)" <ji...@apache.org>.
     [ 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Resolved: (OJB-23) RemovalAwareCollection tries to delete non persistent objects

Posted by "Jakob Braeuchi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OJB-23?page=history ]
     
Jakob Braeuchi resolved OJB-23:
-------------------------------

     Resolution: Fixed
    Fix Version: 1.0.x CVS
                 1.1 CVS

> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (OJB-23) RemovalAwareCollection tries to delete non persistent objects

Posted by "Jakob Braeuchi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OJB-23?page=comments#action_62998 ]
     
Jakob Braeuchi commented on OJB-23:
-----------------------------------

fixes are available on CVS 1.1

PB#doDelete wil throw PBException when pks are not set.

> 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.1 CVS, 1.0.4
>     Reporter: Jakob Braeuchi
>     Assignee: Jakob Braeuchi

>
> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (OJB-23) RemovalAwareCollection tries to delete non persistent objects

Posted by "Jakob Braeuchi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OJB-23?page=all ]
     
Jakob Braeuchi closed OJB-23:
-----------------------------


> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (OJB-23) RemovalAwareCollection tries to delete non persistent objects

Posted by "Jakob Braeuchi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OJB-23?page=comments#action_62999 ]
     
Jakob Braeuchi commented on OJB-23:
-----------------------------------

fixes are available in 1.0.x

> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Assigned: (OJB-23) RemovalAwareCollection tries to delete non persistent objects

Posted by "Jakob Braeuchi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OJB-23?page=history ]

Jakob Braeuchi reassigned OJB-23:
---------------------------------

    Assign To: Jakob Braeuchi

> 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.1 CVS, 1.0.4
>     Reporter: Jakob Braeuchi
>     Assignee: Jakob Braeuchi

>
> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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