db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armin Waibel (JIRA)" <j...@apache.org>
Subject [jira] Created: (OJB-64) Correct handling of 1:n references, when the FK-field is declared in the super-classes instead of the referenced class
Date Sun, 07 Aug 2005 00:19:35 GMT
Correct handling of 1:n references, when the FK-field is declared in the super-classes instead
of the referenced class
----------------------------------------------------------------------------------------------------------------------

         Key: OJB-64
         URL: http://issues.apache.org/jira/browse/OJB-64
     Project: OJB
        Type: Bug
  Components: JDO-API, ODMG-API, OTM-API, PB-API  
    Versions: 1.0.3    
    Reporter: Armin Waibel


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()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message