Re: QueryByCriteria not taking all non null fields in account with inheritance object

2007-01-25 Thread Piet Molenaar
Thanks a lot for your fast reaction! The workaround you proposed (I'd implemented something like that) works for my version of ojb (1.04). And I'm looking forward to the next release! Kind regards, Piet At 06:51 PM 1/24/2007, you wrote: Hi Piet, Piet Molenaar wrote: Hi All, I do not know w

Re: QueryByCriteria not taking all non null fields in account with inheritance object

2007-01-24 Thread Armin Waibel
Hi Piet, Piet Molenaar wrote: Hi All, I do not know whether this is desired behavior but when I use QueryByCriteria with an object that maps an inheritance hierarchy, only the fields specific for that object are queried (the javadocs state: Builds a Query based on anObject all non null valu

Re: QueryByCriteria not taking all non null fields in account with inheritance object

2007-01-24 Thread Piet Molenaar
I'm sorry, but to avoid confusion; the line QueryByCriteria q = new QueryByCriteria(evidence); should be: QueryByCriteria q = new QueryByCriteria(detection); At 12:00 PM 1/24/2007, you wrote: Hi All, I do not know whether this is desired behavior but when I use QueryByCriteria with an obje

QueryByCriteria not taking all non null fields in account with inheritance object

2007-01-24 Thread Piet Molenaar
Hi All, I do not know whether this is desired behavior but when I use QueryByCriteria with an object that maps an inheritance hierarchy, only the fields specific for that object are queried (the javadocs state: Builds a Query based on anObject all non null values are used as EqualToCriteria)