[forge-issues] [JBoss JIRA] (FORGE-1277) Allow relationships to be conditionally emitted in REST resource representations

Vineet Reynolds (JIRA) jira-events at lists.jboss.org
Tue Oct 22 11:36:02 EDT 2013


Vineet Reynolds created FORGE-1277:
--------------------------------------

             Summary: Allow relationships to be conditionally emitted in REST resource representations
                 Key: FORGE-1277
                 URL: https://issues.jboss.org/browse/FORGE-1277
             Project: Forge
          Issue Type: Feature Request
          Components: Builtin Plugins
            Reporter: Vineet Reynolds


>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


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