Uploaded image for project: 'OJB'
  1. OJB
  2. OJB-64

Correct handling of 1:n references, when the FK-field is declared in the super-classes instead of the referenced class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 1.0.3, 1.1 CVS
    • None
    • JDO-API, ODMG-API, OTM-API, PB-API
    • None

    Description

      Problem is the correct handling of 1:n references, when the FK-field is declared in the super-classes.
      Example:
      Employee<-Manager<-Shareholder
      Class 'Consortium' has a 1:n to Shareholder but the FK to Consortium is declared in Manager,

      Consortium reference look like
      <collection-descriptor
      name="shareholders"
      element-class-ref="org.apache.ojb.broker.InheritanceMultipleTableTest$Shareholder"
      proxy="false"
      auto-retrieve="true"
      auto-update="object"
      auto-delete="object"
      >
      <inverse-foreignkey field-ref="consortiumKey"/>
      </collection-descriptor>

      But the 'consortiumKey' is declared in Manager (e.g. because we want to introduce a second 1:n containing all Manager).

      More detail see InheritanceMultipleTableTest#testInheritedReferences()

      Attachments

        Activity

          People

            brj Jakob Braeuchi
            arminw Armin Waibel
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: