But then in that DAO I should use tx.markDirty() or tx.lock(obj, WRITE) ? Łukasz Korzybski.
Dnia niedziela, 30 stycznia 2005 19:57, Thomas Dudziak napisał: > Why do you give the object to OJB so early ? The usual routine of > using OJB in a webapp would be something like this: > > * interact with user, e.g. fill object with form values, validate the > object, present to user again to force changes, validate again > * give (correct) object to DAO object, which - in a transaction - > stores the object > > Making changes in a transaction is usually not necessary unless you > have the constraints defined in a database instead of in the app. > > Tom > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- ---------------------------------- Łukasz Korzybski, [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
