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. 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

          Donald Woods made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Patrick Linskey made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Invalid [ 6 ]
          Teresa Kan made changes -
          Attachment TestFetchGroup.patch [ 12369187 ]
          Teresa Kan made changes -
          Attachment TestFetchGroup.patch [ 12369233 ]
          Teresa Kan made changes -
          Attachment TestFetchGroup.patch [ 12369187 ]
          Craig L Russell made changes -
          Attachment smime.p7s [ 12368917 ]
          Kevin Sutter made changes -
          Link This issue is related to OPENJPA-403 [ OPENJPA-403 ]
          Kevin Sutter made changes -
          Fix Version/s 1.0.2 [ 12312846 ]
          Fix Version/s 1.0.1 [ 12312687 ]
          Affects Version/s 1.0.2 [ 12312846 ]
          Pinaki Poddar made changes -
          Attachment TestJIRA370.zip [ 12368835 ]
          Patrick Linskey made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Kevin Sutter made changes -
          Fix Version/s 1.0.1 [ 12312687 ]
          Fix Version/s 1.1.0 [ 12312344 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Kevin Sutter made changes -
          Assignee Teresa Kan [ tckan1 ]
          Kevin Sutter made changes -
          Affects Version/s 1.0.1 [ 12312687 ]
          Teresa Kan made changes -
          Attachment OPENJPA_370_2.patch [ 12366300 ]
          Teresa Kan made changes -
          Field Original Value New Value
          Attachment TestFetchGroup.zip [ 12365887 ]
          Teresa Kan created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development