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

LoadFetchGroup annotation was not recognized during the fetch1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.0.1, 1.0.2, 1.1.0
    • 1.0.2, 1.1.0
    • kernel
    • 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. ASF.LICENSE.NOT.GRANTED--smime.p7s
          2 kB
          Craig L Russell
        2. OPENJPA_370_2.patch
          10 kB
          Teresa Kan
        3. TestFetchGroup.patch
          29 kB
          Teresa Kan
        4. TestFetchGroup.zip
          8 kB
          Teresa Kan
        5. TestJIRA370.zip
          3 kB
          Pinaki Poddar

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: