OK, I'll upgrade to the latest in CVS and see if that works. Thanks for looking into this.

On Thursday, October 24, 2002, at 01:45 PM, Jakob Braeuchi wrote:

hi scott,

imo the problem is in the cast to QueryByCriteria witch failes for a
QueryByMtoNCriteria:

private ClassDescriptor getItemClassDescriptor(ObjectReferenceDescriptor
ord, String attr)
{
Class itemClass;

// BRJ look for hint
itemClass = ((QueryByCriteria) getQuery()).getClassForPath(attr);
if (itemClass == null)
{
itemClass = ord.getItemClass();
}
return
ord.getClassDescriptor().getRepository().getDescriptorFor(itemClass);
}

there have been major refactorings in this area, i think you should try a
newer version.
btw in the current version (cvs) i check the class before casting...

hth
jakob

----- Original Message -----
From: "Scott W. Hill" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 10:28 PM
Subject: Re: Problem with M:N association


/**
* This Class allows to build an abstract SQL statement, which is then
materialized by
* concrete Platform implementation.
*
* @author <a href="mailto:on@;ibis.odessa.ua">Oleg Nitz</a>
* @version $Id: SqlStatement.java,v 1.8 2002/08/19 20:08:06 brj Exp $
*/
public abstract class SqlStatement implements JoinSyntaxTypes

On Thursday, October 24, 2002, at 01:12 PM, Jakob Braeuchi wrote:

hi scott,

can you please post the header of  SqlStatement.java the i can check
the
version.

/**
* Model a Statement based on Query
*
* @author <a href="mailto:jbraeuchi@;hotmail.com">Jakob Braeuchi</a>
* @version $Id: SqlQueryStatement.java,v 1.10 2002/10/08 14:04:01 brj
Exp $
*/

jakob

----- Original Message -----
From: "Scott W. Hill" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 10:00 PM
Subject: Re: Problem with M:N association


No. I've been trying to keep stable for now, given that my code is
changing rapidly at this point. I'd upgrade if we thought that this
was
a fixed bug, though.

On Thursday, October 24, 2002, at 12:59  PM, Jakob Braeuchi wrote:

hi scott,

from the stacktrace i see you're using an older version of ojb.
have you tried the current one ?

jakob
--Scott


--
To unsubscribe, e-mail:
<mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:ojb-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:ojb-user-help@;jakarta.apache.org>


--Scott


--
To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>


--Scott


--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to