Oops sorry about all that mess guys, found a bug in my
code...
Regards,
Serge Huber.
--- Serge Huber <[EMAIL PROTECTED]> wrote:
>
> I forgot to say some detail. The "contextID" and
> "remoteUser" in the criterias are not primary or
> foreign keys, just simple properties mapped onto
> database fields.
>
> Regards,
> Serge Huber.
>
> --- Serge Huber <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > I'm using OJB in a pretty complicated scenario (7
> > tables with 1..n relations and especially one
> tree).
> >
> >
> > I'm having weird problems with the
> > getIteratorByQuery
> > requests. Basically this is the code I have :
> >
> > Criteria criteria = new Criteria();
> > criteria.addEqualTo("contextID",
> contextID);
> > criteria.addEqualTo("remoteUser",
> > remoteUser);
> >
> > Query query = new
> > QueryByCriteria(MyInfo.class, criteria);
> > try {
> > /** @todo should we start the
> > transaction
> > here or elsewhere ? */
> > Iterator resultIter =
> > broker.getIteratorByQuery(query);
> > } catch (Throwable t) {
> > // rollback in case of errors
> > t.printStackTrace();
> > }
> >
> > The problem I have is that this should return an
> > iterator that iterates over a collection of two
> > objects, but for some strange reason I only get
> the
> > first one. Is there something I'm missing here ?
> >
> > Oh while I'm at it I'm using hsqldb and OJB 0.9.7.
>
> >
> > Regards,
> > Serge Huber.
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Faith Hill - Exclusive Performances, Videos & More
> > http://faith.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>