Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-12964

Incorrect JPA mapping for MaintenanceDocumentBase

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-12804Analysis on why projects are extending MaintenanceDocumentBase
      KULRICE-2063Fix JPA references in KNS from the merges
      KULRICE-1959Finish annotating entities with JPA annotations
      KULRICE-11001Advanced Lookup Demo - ORM mapping for BOs
      KULRICE-11490Convert CategoryBo to JPA
      KULRICE-9515Document how to convert OJB descriptor mappings to JPA
      KULRICE-11468Add ability to remove mappings from superclass with JPA
      KULRICE-11496Convert KCB entities from OJB to JPA
      KULRICE-11148JPA mapped transactional document fields not linking
      KULRICE-2141Add JPA annotations and implement JPA Daos throughout Rice
    • Rice Module:
      KNS, KRAD
    • Application Requirement:
      KC
    • Sprint:
      Core 2.5.0-m5 Sprint 2
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      MaintenanceDocumentBase should have a @OneToOne not @ManyToOne

      @ManyToOne(fetch = FetchType.LAZY,
      cascade =

      {CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE}

      )
      @JoinColumn(name = "DOC_HDR_ID",
      insertable = false, updatable = false)
      protected DocumentAttachment attachment;

      they have the exact same PK so that relationship makes no sense

        Issue Links

          Activity

            People

            • Assignee:
              Shannon Hess
              Reporter:
              Jay Hulslander
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours Time Not Required
                6h

                  Agile

                    Structure Helper Panel