Uploaded image for project: 'Polygene'
  1. Polygene
  2. POLYGENE-61

In Lifecycle.create(), @This can't be used in EntityBuilder's to set non-Optional values.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:

      Description

      If I create Entity A, and in its LifeCycle.create() method I try to create an Entity B that needs an association to Entity A, Entity A is not visible to the creation process within the EntityBuilder.

      However, if the Entity B is first created, and then Entity A is assigned to Entity B, that works. This however, introduces a lot of @Optional in aggregates, when they shouldn't be.

        Attachments

          Activity

            People

            • Assignee:
              niclas Niclas Hedhman
              Reporter:
              eskatos Paul Merlin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: