jpa-spec
  1. jpa-spec
  2. JPA_SPEC-65

Need another property to make lazy loading of attributes easy with entity graphs

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Labels:
      None

      Description

      There are currently two properties to use with entity graphs:

      javax.persistence.fetchgraph -

      This property accepts an entity graph to act as a complete override of all the attributes for the type. Attributes are dictated to be eager if included or lazy if excluded from the graph, regardless of how they are mapped.

      javax.persistence.loadgraph -

      This property offers a selective eager approach. One can simply add the attributes that one wants to be eagerly loaded and the rest are left as they are statically mapped.

      The missing property would be something to allow more convenient selective lazy overriding without having to declare the entire attribute set for the type (as required by fetchgraph). So something like:

      javax.persistence.lazygraph -

      This property would offer a selective lazy approach. One would be able to add the attributes that one wants to be lazily loaded to the graph, with the rest being left as they are statically mapped.

        Activity

        mkeith created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            mkeith
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: