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

LoadFetchGroup annotation was not recognized during the fetch1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 1.0.1, 1.0.2, 1.1.0
    • Fix Version/s: 1.0.2, 1.1.0
    • Component/s: kernel
    • Labels:
      None

      Description

      Employee class has a LoadFetchGroup annotation defined on the Rating field, when getRating was called, the address should be returned also. However, openjpa did not handle the LoadFetchGroup correctly, therefore, address was not eargly fetched.
      public class FGEmployee{
      @Id
      private int id;

      @OneToOne(fetch=FetchType.LAZY)
      private FGAddress address;

      @Basic(fetch=FetchType.LAZY)
      @LoadFetchGroup("AddressFetchGroup")
      private String rating;

      @ManyToOne(fetch=FetchType.LAZY)
      private FGManager manager;

      ..
      }

        Attachments

        1. TestJIRA370.zip
          3 kB
          Pinaki Poddar
        2. TestFetchGroup.zip
          8 kB
          Teresa Kan
        3. TestFetchGroup.patch
          29 kB
          Teresa Kan
        4. OPENJPA_370_2.patch
          10 kB
          Teresa Kan
        5. ASF.LICENSE.NOT.GRANTED--smime.p7s
          2 kB
          Craig L Russell

          Issue Links

            Activity

              People

              • Assignee:
                tckan1 Teresa Kan
                Reporter:
                tckan1 Teresa Kan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: