glassfish
  1. glassfish
  2. GLASSFISH-3517

reading already managed entities doesn't respect fetch joins

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 9.0pe
    • Fix Version/s: 9.1pe_dev
    • Component/s: entity-persistence
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      3,517
    • Status Whiteboard:
      Hide

      HIGH,911Approved

      Show
      HIGH,911Approved

      Description

      For instance, reading all employees using:
      em.createQuery("SELECT e FROM Employee e").getResultList();
      then later on in the same em:
      em.createQuery("SELECT e FROM Employee e LEFT JOIN FETCH
      e.phoneNumbers").getResultList();

      the returned employess will not have phoneNumbers fetched (indirection won't be
      triggered if they are lazy loaded). This will cause exceptions if the
      employees are to be serialized.

        Activity

        Hide
        chris_delahunt added a comment -

        cleaning up a potential fix

        Show
        chris_delahunt added a comment - cleaning up a potential fix
        Hide
        gfbugbridge added a comment -

        <BT6595641>

        Show
        gfbugbridge added a comment - <BT6595641>
        Hide
        pkrogh added a comment -

        Not a showstopper. Downgrading to P4

        Show
        pkrogh added a comment - Not a showstopper. Downgrading to P4
        Hide
        chris_delahunt added a comment -

        fix is checked in, should be in build 59:
        http://fisheye5.cenqua.com/changelog/glassfish?
        cs=MAIN:chris_delahunt:20070822205728

        Show
        chris_delahunt added a comment - fix is checked in, should be in build 59: http://fisheye5.cenqua.com/changelog/glassfish? cs=MAIN:chris_delahunt:20070822205728
        Hide
        basler added a comment -

        Approved for check into the SJSAS91_FCS_BRANCH

        Show
        basler added a comment - Approved for check into the SJSAS91_FCS_BRANCH

          People

          • Assignee:
            chris_delahunt
            Reporter:
            chris_delahunt
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: