[odb-users] Object already persistent

Boris Kolpackov boris at codesynthesis.com
Thu Dec 22 10:22:08 EST 2016


Hi,

Anaswara Nair <anaswara.nn at gmail.com> writes:
 
> But, it throws the exception as object already persistent in the persist
> statement of TableB. What can be done here?

You could first try to check whether there is already an entry for B (e.g.,
using a light view). Or you could catch the exception and either abort the
transaction or erase the A entry.

Boris



More information about the odb-users mailing list