Re: [jira] Closed: (CAY-1261) Auto-inject values in NEW objects with declared qualifiers

From: Andrey Razumovsky (razumovsky.andre..mail.com)
Date: Tue Aug 18 2009 - 08:33:57 EDT

  • Next message: Andrey Razumovsky: "Re: [jira] Closed: (CAY-1261) Auto-inject values in NEW objects with declared qualifiers"

    Hi Ari,

    I can't think of the situation when the feature should be disabled. I think
    it just spares time and lines of code when working with entities with
    qualifiers. Initial values will be injected only if that is trivial (in
    fact, only equality expressions - otherwise Cayenne just cannot decide what
    to inject).
    For "isDeleted" case I intentionally implemented CAY-1235 and CAY-1236 and
    use them in pair, more at [1]. I agree this should be mentioned in docs,
    though.

    And once again, currently the feature is quite trivial, e.g. it does not
    support db paths, chained paths and so on.. If needed, we can discuss an
    improvement

    [1] http://cayenne.apache.org/doc/custom-batchquerybuilder-factory.html

    2009/8/18 Aristedes Maniatis <ar..aniatis.org>

    > On 18/08/09 9:58 PM, Andrey Razumovsky (JIRA) wrote:
    >
    >> Andrey Razumovsky closed CAY-1261.
    >> ----------------------------------
    >>
    >> Resolution: Fixed
    >>
    >> Finished; any advanced inject abilities will go through separate JIRAs.
    >> The most common case, ASTObjPath=ASTScalar [ AND ASTObjPath=ASTScalar]* is
    >> covered
    >>
    >
    >
    > Hi Andrey
    >
    > This is a very interesting feature, and I think that before you close the
    > task we need some documentation on the web site for it. Is there a way to
    > enable or disable this feature? Is it designed to work in the vertical
    > inheritance situation as well as the common isDeleted use-case?
    >
    > Ari Maniatis
    >
    >
    >
    > -------------------------->
    > Aristedes Maniatis
    > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
    >



    This archive was generated by hypermail 2.0.0 : Tue Aug 18 2009 - 08:34:31 EDT