OpenJPA
  1. OpenJPA
  2. OPENJPA-370

LoadFetchGroup annotation was not recognized during the fetch1

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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;

      ..
      }

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

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development