Tutorial

Chris Muller asqueaker at gmail.com
Tue Nov 27 01:40:38 UTC 2007


> application. For ex. how to perform an update to a user's address?
> Open a transaction with *session begin* and  hold it until the user
> submits the changes? or make a copy of the persistent object, hand
> it to the editing component and merge the changes when the user
> submits? or use Magritte? etc.

Both approaches are good strategies depending on your needs.  For
simple OLTP like updating a customer address, the former strategy
should be fine.

But for, say, complex CAD work requiring long periods of isolated work
by a single person (session), the copying strategy is probably more
viable.


More information about the Magma mailing list