[forge-issues] [JBoss JIRA] (FORGE-392) Scaffold API generateFromEntity should also create dependent entities

Ivan St. Ivanov (JIRA) jira-events at lists.jboss.org
Wed Aug 22 11:36:15 EDT 2012


     [ https://issues.jboss.org/browse/FORGE-392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan St. Ivanov updated FORGE-392:
----------------------------------

        Fix Version/s:     (was: 1.0.7.Final)
    Affects Version/s: 1.0.7.Final

    
> Scaffold API generateFromEntity should also create dependent entities
> ---------------------------------------------------------------------
>
>                 Key: FORGE-392
>                 URL: https://issues.jboss.org/browse/FORGE-392
>             Project: Forge
>          Issue Type: Feature Request
>          Components: Scaffold
>    Affects Versions: 1.0.7.Final
>            Reporter: Richard Kennard
>
> In org.jboss.forge.scaffold.plugins.ScaffoldPlugin there is a method 'generateFromEntity' which delegates to 'provider.generateFromEntity'.
> It calls 'provider.generateFromEntity' once for every JavaResource it is given. So for example if the user types:
>    from-entity com.test.domain.Foo com.test.domain.Bar
> It will generate scaffolding for both Foo and Bar.
> However if Foo has some kind of relationship to Bar, then the scaffolding produced by Foo will internally refer to Bar. Therefore the generated project will be broken if the user simply does...
>    from-entity com.test.domain.Foo
> ...because there will be no Bar scaffolding.
> It would be great if the Scaffold API could understand that Foo has related entities and automatically add those into the list before it calls 'provider.generateFromEntity'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the forge-issues mailing list