I should plug my usual "check out 3.0 lifecycle callbacks" mantra :-)

http://cwiki.apache.org/CAYDOC/lifecycle-callbacks.html

of course to get this functionality, you'd need to build Cayenne from SVN. Hopefully we'll restore the nightly builds someday. And even better - graduate from Apache Incubator and start posting official milestone releases of 3.0 :-)

Andrus


On Nov 27, 2006, at 2:11 PM, Matt Kerr wrote:

trying to recall ..   so, i would double check this, but --

Perhaps this is because of my WO/EOF background, but I had always
assumed that modifying anything in the validate* methods would be a
Bad Thing and never tried doing it.

is this because WO/EOF specifically guides you *not* to put any side-effect code into the validate* methods.

but i want to say this was ok .. since there were other delegate methods to tidy up before validateFor* was invoked ..

(now - if i could just remember which one .. hmm.  is that right?)



I can't say I ever read it in regards to Cayenne, but it feels like the right thing to me.
Not sure why it changed in behavior, though.


in cayenne -- there is no equivalent delegate .. and i believe the right/best way to handle this situation is to implement the side- effects in validateFor*().


-mk



Reply via email to