Cayenne
  1. Cayenne
  2. CAY-1261

Auto-inject values in NEW objects with declared qualifiers

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0M6
    • Fix Version/s: 3.0 beta 1, 3.0
    • Component/s: Core Library
    • Labels:
      None

      Description

      Auto-inject values in NEW objects with declared qualifiers.
      E.g. if entity Employee has a qualifier personType="EE" then context.newObject(Employee.class).getPersonType() should be "EE"

      At first step I plan to inject only AND expressions and those Equal, where one operand is a path (Db or Obj) and other is scalar

        Activity

        Hide
        Andrey Razumovsky added a comment -

        Finished; any advanced inject abilities will go through separate JIRAs. The most common case, ASTObjPath=ASTScalar [ AND ASTObjPath=ASTScalar]* is covered

        Show
        Andrey Razumovsky added a comment - Finished; any advanced inject abilities will go through separate JIRAs. The most common case, ASTObjPath=ASTScalar [ AND ASTObjPath=ASTScalar]* is covered

          People

          • Assignee:
            Andrey Razumovsky
            Reporter:
            Andrey Razumovsky
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development