[forge-issues] [JBoss JIRA] (FORGE-1061) REST plugin should support user-driven mapping of DTOs to JPA entities

George Gastaldi (JIRA) jira-events at lists.jboss.org
Tue Sep 10 16:08:03 EDT 2013


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

George Gastaldi updated FORGE-1061:
-----------------------------------

    Fix Version/s: 2.x Future

    
> REST plugin should support user-driven mapping of DTOs to JPA entities
> ----------------------------------------------------------------------
>
>                 Key: FORGE-1061
>                 URL: https://issues.jboss.org/browse/FORGE-1061
>             Project: Forge
>          Issue Type: Feature Request
>          Components: Builtin Plugins
>    Affects Versions: 1.3.3.Final
>            Reporter: Vineet Reynolds
>             Fix For: 2.x Future
>
>
> This is to extend the work done in FORGE-1060 which is scoped to generate DTOs in a pre-determined manner for JPA entities. We should be able to support user-driven mapping of the JPA entities to create the DTOs first, and then generate the appropriate business services that would update the underlying entities in the database.
> Doing so would allow the REST resources to function in a similar manner to the [REST workflow pattern|http://www.infoq.com/articles/webber-rest-workflow]. This would improve the transactional behavior of the resources, since the constructed DTOs could house all related entities that participate in a business transaction. Since metadata of business transactions is not available in the object model, the mapping process to derive the DTOs will be user-driven.
> Not doing so would yield REST resources that are just representations of database tables, thus requiring associations to be established for entities that participate in a business transaction.

--
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 forge-issues mailing list