Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1061

REST plugin should support user-driven mapping of DTOs to JPA entities

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • 3.x Future
    • 1.3.3.Final
    • Builtin Plugins
    • None

      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. 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.

              Unassigned Unassigned
              vineet.reynolds_jira Vineet Reynolds (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: