db-ojb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Anthony <charles.anth...@hpdsoftware.com>
Subject Select extents
Date Tue, 07 Oct 2003 07:56:53 GMT
Morning all,

I have a base class Agreement. It has several 14 subclasses, all mapped to
the same table AGREEMENT. I have an ojbConcreteClass attribute correctly
configured.

One of the subclasses of Agreement is ServiceAgreement. If I do a
QueryByCriteria for all ServiceAgreements

QueryByCriteria qbc = new QueryByCriteria(ServiceAgreement.class,null,
true);

The SQL statement created no longer does an "IN" for classnames :

SELECT DISTINCT A0.CREATEDTIME [..other columns..] FROM AGREEMENT A0

What used to happen was something like

SELECT DISTINCT A0.CREATEDTIME [..other columns..] FROM AGREEMENT A0 WHERE
OJBCONCRETCLASS IN ('package.ServiceAgreement')

The net result of which is, we get lots of warnings like this :

07-Oct-2003 08:39:21,973    WARN  [main]
org.apache.ojb.broker.core.PersistenceBrokerImpl - Candidate object
[aquarius.agreement.DebtorAccount@cf710e] class
[aquarius.agreement.DebtorAccount] is not a subtype of
[aquarius.agreement.ServiceAgreement] or any type of proxy. NOT INCLUDED in
result collection


This seems to be happening when we query anything that is an extent class
i.e. it's not just specific to this class.

We are running a recent-ish CVS version (25-09-2003). Has anyone any idea
what's going on here ?

Cheers,

Charles.


This email and any attachments are strictly confidential and are intended
solely for the addressee. If you are not the intended recipient you must
not disclose, forward, copy or take any action in reliance on this message
or its attachments. If you have received this email in error please notify
the sender as soon as possible and delete it from your computer systems.
Any views or opinions presented are solely those of the author and do not
necessarily reflect those of HPD Software Limited or its affiliates.

 At present the integrity of email across the internet cannot be guaranteed
and messages sent via this medium are potentially at risk.  All liability
is excluded to the extent permitted by law for any claims arising as a re-
sult of the use of this medium to transmit information by or to 
HPD Software Limited or its affiliates.



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


Mime
View raw message