Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2141

Lazy fetch of embedded attributes does not work properly

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1, 2.3.0
    • Fix Version/s: None
    • Component/s: jdbc
    • Labels:
      None

      Description

      OpenJPA's @Persistent annotation and configuration via OpenJPA's xml extensions provide a mechanism to mark embedded fields lazy. When trying to use this facility I found a couple bugs.
      Bug 1: The xml extension does not process the fetch attribute, so the field is never marked lazy.
      Bug 2: If marked lazy via the annotation or xml (with a fix) the lazy field does not get loaded along with the entity (as expected), but then will not load when accessed.

        Attachments

          Activity

            People

            • Assignee:
              techhusky Jeremy Bauer
              Reporter:
              techhusky Jeremy Bauer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated: