Re: pre-validation

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Nov 02 2005 - 10:39:42 EST

  • Next message: Jeff de Vries: "Re: auto class generated by 1.2M6 gets compile warning"

    Yes, it is perfectly safe from Cayenne perspective. For instance you
    can do

        context.getObjectStore().validateUncommittedObjects()

    and catch ValidationException to analyze the failures.

    Andrus

    On Nov 2, 2005, at 6:15 PM, Cris Daniluk wrote:

    > Is it safe to call the validation methods explicitly before committing
    > the context?
    >
    > I'd like to circumvent a bunch of processing with a simple validation
    > of the object graph. Cayenne's validation is perfectly sufficient for
    > my needs, but I wasn't sure if the validation triggered any state
    > changes, etc?
    >
    > Thanks!
    >
    > Cris
    >



    This archive was generated by hypermail 2.0.0 : Wed Nov 02 2005 - 10:39:44 EST