[jbosstools-issues] [JBoss JIRA] (JBIDE-4269) Provide a way to filter out elements which will be generated by exporter.

Max Rydahl Andersen (JIRA) issues at jboss.org
Mon Jan 20 06:55:50 EST 2014


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

Max Rydahl Andersen resolved JBIDE-4269.
----------------------------------------

    Resolution: Out of Date


Thank you for reporting this issue but this issue have been resolved as out-of-date since it has not had any updates for the last 2+ years (730 days).

If you believe this issue is still relevant and important then please reopen the issue or create a new one mentioning/linking this jira for background information.

Thank you!


                
> Provide a way to filter out elements which will be generated by exporter.
> -------------------------------------------------------------------------
>
>                 Key: JBIDE-4269
>                 URL: https://issues.jboss.org/browse/JBIDE-4269
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: hibernate
>    Affects Versions: 3.1.0.M1
>            Reporter: Dmitry Geraskov
>            Assignee: Max Rydahl Andersen
>            Priority: Blocker
>             Fix For: 3.3.x
>
>         Attachments: patch.txt
>
>
> Now exporter uses Configuration object to get for example pojo's for generation.
> After this it calls generation for each of them.
> We need to add some filter for this.
> First place for such injection is ArtifactCollector as developer can easily specify subclass of this class and set it to exporter.
> Also TemplateProducer which used for files generating always gets ArtifactCollector object in constructor from exporter and has access to it.
> I' going to add methods filter(Map context), setFilter(Filter) to ArtifactCollector class and call it when necessary in template producer.
> Method 'filter' by default will not filter out anything. Non default realizations should use context map to get any objects which is passed to template producer.
> Second variant is to add Filter field to Generic exporter and call for filtering in GenericExporter.exportPOJO() method(or in each realization of ModelIterator.process()).
> I prefer first way.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list