Bruce,

Thanks for the reply. I actually just got it working. I'm using this OQL statement now.

"SELECT o FROM com.goodtobehome.core.data.ListingInfo o WHERE o.openHouses.startTime > $1"

I did try this before but I'm not sure what exact syntax I was using? Perhaps I was using openHouse instead of openHouses? I went back to try it again and BAM, it started working and working correctly. So I'm off again.

I'm loving castor and I'm pushing to use it at work. I'm using it at my home business which soon should be off the ground. ;-)

Thanks again for your help.

Mike

Bruce Snyder wrote:

On Fri, 25 Mar 2005 08:10:31 -0500, Mike Wannamaker
<[EMAIL PROTECTED]> wrote:



I tried your suggestion, moving the mapping above ListingInfo, no good
same exception?  I believe it is due to the fact that OpenHouse class
depends on ListingInfo.  If I remove this then I can query on the
OpenHouse class.

   <class name="com.goodtobehome.core.data.OpenHouse" identity="id"
depends="com.goodtobehome.core.data.ListingInfo" key-generator="IDENTITY">

Is there anyway to use the depends attribute but also be able to query
against the OpenHouse objects in the database? Through OQL that is?



My apologies for not putting two and two together in my previous response, Mike. But the query that you're attempting to execute requires support for polymorphism. Castor currently does not support polymorphism but Werner is working on it right now. In fact, it may be complete already. See bug 1881:

http://bugzilla.exolab.org/show_bug.cgi?id=1881

Bruce




----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user

Reply via email to