db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dima (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OJB-21) retrieval of collection of objects with inheritance
Date Thu, 14 Apr 2005 19:58:17 GMT
     [ http://issues.apache.org/jira/browse/OJB-21?page=comments#action_62861 ]
     
Dima commented on OJB-21:
-------------------------

The exception:
org.apache.ojb.broker.OJBRuntimeException: Incorrect or not found field referenc
e name 'chartID' in descriptor org.apache.ojb.broker.metadata.CollectionDescript
or@d09ad3[cascade_retrieve=true,cascade_store=none,cascade_delete=object,is_lazy
=false,class_of_Items=class com.telcordia.xsl.performancereports.KeyIndicatorCon
dChart] for class-descriptor 'com.telcordia.xsl.performancereports.KeyIndicatorC
ondChart'
at org.apache.ojb.broker.metadata.ObjectReferenceDescriptor.getForeignKeyFieldD
escriptors(ObjectReferenceDescriptor.java:131)
at org.apache.ojb.broker.core.QueryReferenceBroker.getFKQuery1toN(QueryReferenc
eBroker.java:697)
at org.apache.ojb.broker.core.QueryReferenceBroker.getFKQuery(QueryReferenceBro
ker.java:630)
at org.apache.ojb.broker.core.QueryReferenceBroker.retrieveCollection(QueryRefe
renceBroker.java:561)
at org.apache.ojb.broker.core.QueryReferenceBroker.retrieveCollections(QueryRef
erenceBroker.java:748)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getDBObject(PersistenceBrok
erImpl.java:1303)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.doGetObjectByIdentity(Persi
stenceBrokerImpl.java:1367)
at org.apache.ojb.broker.core.PersistenceBrokerImpl.getObjectByIdentity(Persist
enceBrokerImpl.java:1346)
at org.apache.ojb.broker.core.DelegatingPersistenceBroker.getObjectByIdentity(D
elegatingPersistenceBroker.java:312)
at org.apache.ojb.broker.core.DelegatingPersistenceBroker.getObjectByIdentity(D
elegatingPersistenceBroker.java:312)
at com.telcordia.xsl.test.scheduler.OJBTest.testBroker(OJBTest.java)
at com.telcordia.xsl.test.scheduler.OJBTest.main(OJBTest.java)

> 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: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message