Announcement Announcement Module
No announcement yet.
Sets not appearing in "show" views. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Hi Carlos,

    Currently one to many reference relationships are not displayed in show views for multiple reasons:

    - What happens if domain objects which are part of your set have references to other entities - do you expect to see the details of those too? Where would you stop?
    - What happens if domain objects which are part of your set have references to the containing entity (cyclic references)? You get a stack overflow error.
    - What happens if the referenced set is very large? Would you be happy to see details of say 10000 referenced entities? Especially if they have 50 fields each?
    - One could argue we could display the set size but that requires a DB query just to determine its size (potentially expensive).
    - One could argue Roo could offer links to referenced entities but that requires the same expensive DB query, and also may be undesirable for very large sets.

    This hopefully illustrates why displaying set contents this is not an optimal solution in most cases. '

    However nobody holds you back from adjusting your tags to actually present the information you need.


    • #17

      I think that only showing the single, versus collection, attributes is inconsistent. And also atypical. How else do you view an collection attribute? You need to, somehow...

      As far as implementation, there is no need to show the whole tree, i.e. it is sufficient, and again typical, to only show the immediate items in the collection attribute.

      As for exploring the composition of the items in the the collection (and, for that matter, single!) attributes, that's where the following request is valuable:

      According to which, in 24/Feb/10 (when the ticket was created), "scaffolding engine generate[d] in show.jspx view of Owner plain text list of pets".


      • #18
        Agreed, Stefan?