You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@polygene.apache.org by "Paul Merlin (JIRA)" <ji...@apache.org> on 2015/07/10 12:09:05 UTC

[jira] [Created] (ZEST-61) In Lifecycle.create(), @This can't be used in EntityBuilder's to set non-Optional values.

Paul Merlin created ZEST-61:
-------------------------------

             Summary: In Lifecycle.create(), @This can't be used in EntityBuilder's to set non-Optional values.
                 Key: ZEST-61
                 URL: https://issues.apache.org/jira/browse/ZEST-61
             Project: Zest
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Paul Merlin
            Assignee: Niclas Hedhman
             Fix For: 2.1


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.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)