Return-Path: Delivered-To: apmail-db-ojb-user-archive@www.apache.org Received: (qmail 54676 invoked from network); 7 Oct 2003 08:00:06 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 7 Oct 2003 08:00:06 -0000 Received: (qmail 56241 invoked by uid 500); 7 Oct 2003 07:59:37 -0000 Delivered-To: apmail-db-ojb-user-archive@db.apache.org Received: (qmail 56229 invoked by uid 500); 7 Oct 2003 07:59:36 -0000 Mailing-List: contact ojb-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Users List" Reply-To: "OJB Users List" Delivered-To: mailing list ojb-user@db.apache.org Received: (qmail 56214 invoked from network); 7 Oct 2003 07:59:36 -0000 Received: from unknown (HELO srv002.hpd.co.uk) (212.158.99.130) by daedalus.apache.org with SMTP; 7 Oct 2003 07:59:36 -0000 Message-ID: <6FB083FB72EFD21181D30004AC4CA18A03249AD0@srv002> From: Charles Anthony To: "'ojb-user@db.apache.org'" Subject: Select extents Date: Tue, 7 Oct 2003 08:56:53 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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