[ http://issues.apache.org/jira/browse/OJB-21?page=comments#action_62860 ]
     
Dima commented on OJB-21:
-------------------------

I subscribed to the mailing list , but my emails bouncing back, 
so I post it here

   <class-descriptor
          class="KeyIndicatorAggChart"
          table="XSL_RPT_KI_AGG_CHART_T"
   >

      <field-descriptor
         name="id"
         column="ID"
         jdbc-type="INTEGER"
         primarykey="true"
         autoincrement="true"
         sequence-name="XSL_RPT_ASSOC_OBJ_ID_SEQ"
         access="anonymous"
      />
      <field-descriptor
         name="chartID"
         column="CHART_ID"
         jdbc-type="INTEGER"
      />

   </class-descriptor>

   <!-- class -->
   <class-descriptor
          class="KeyIndicatorCondChart"
          table="XSL_RPT_KI_COND_CHART_T"
   >
      <field-descriptor
         name="id"
         column="ID"
         jdbc-type="INTEGER"
         primarykey="true"
         autoincrement="true"
         sequence-name="XSL_RPT_ASSOC_OBJ_ID_SEQ"
         access="anonymous"
      />
      <reference-descriptor
                name="super"
                class-ref="KeyIndicatorAggChart"
                auto-retrieve="true"
                auto-update="true"
                auto-delete="true"
      >
                <foreignkey field-ref="id"/>
          </reference-descriptor>

   </class-descriptor>

   <!-- class -->
   <class-descriptor
          class="ObjectGroupAnalysisChart"
          table="XSL_RPT_OBJ_GROUP_ANL_CHART_T"
   >
      <field-descriptor
         name="id"
         column="ID"
         jdbc-type="INTEGER"
         primarykey="true"
         autoincrement="true"
         sequence-name="XSL_ADM_SEQ"
      />


          <collection-descriptor
                name="keyIndicators"
                element-class-ref="KeyIndicatorCondChart"
                auto-retrieve="true"
                auto-update="none"
                auto-delete="true">
                <inverse-foreignkey field-ref="chartID"/>
          </collection-descriptor>

   </class-descriptor>

</descriptor-repository>


> retrieval of collection of objects with inheritance
> ---------------------------------------------------
>
>          Key: OJB-21
>          URL: http://issues.apache.org/jira/browse/OJB-21
>      Project: OJB
>         Type: Bug
>   Components: PB-API
>     Versions: 1.0.x CVS
>  Environment: Linux Debian, Intel Pentium 4
>     Reporter: Dima

>
> Not possible to retrieve(possible update) collections of objects with 
> inheritance. Collection consist of derived type of object( not base). The 
> result exception says that foreign key field  not found in derived 
> object(true, because it is in base). Tried with extensions, anonymous etc.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to