[Glorp-development] Rollback

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Glorp-development] Rollback

Mark Plas
Hi,

This mail is part of a set of glorp questions I have (see some other
mails I've sent recently).

The question I would like to address here is:

What happens with my domain objects & with the Glorp session if I try to
commit a unit of work but it fails for some database reason (uniqueness
constraint violation for instance)? I would like to avoid that Glorp
does a rollback of the domain objects and resets the internal state of
the session that keeps track of the changes. I'd rather have the
possibility to correct the problem and try to recommit the unit of work
again.

Is this possible ?

Thanks,
Mark