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

Allow relationships to be conditionally emitted in REST resource representations

    XMLWordPrintable

Details

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

    Description

      From : http://lists.jboss.org/pipermail/forge-dev/2013-October/003484.html

      When you have too many @OneToMany or @ManyToMany relationships, you end up
      with several queries that JOIN FETCH several/different relationships. So
      what I usually do when things are complex is :

      findAll
      findAllWithRelations (meaning all relations are FETCH)

      or more specific (when things are really really complex)

      findAllWithBooks
      findAllWithAuthors
      findAllWithBooksAndAuthors

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: