Re: PB Tutorial: Query By Criteria on Object

2004-12-06 Thread Annapoorani Rathi
Hi, Thanks for your inputs. I changed all the primitive data types (not just PK and FK values) used to objects and it worked. Thanks Anna Armin Waibel <[EMAIL PROTECTED]> wrote: Hi Anna, Annapoorani Rathi wrote: > Hi, > > I just started on OJB.. > > In PB Tutorial, the code snippet does n

Re: PB Tutorial: Query By Criteria on Object

2004-12-06 Thread Armin Waibel
Hi Anna, Annapoorani Rathi wrote: Hi, I just started on OJB.. In PB Tutorial, the code snippet does not fetch me the record and result is null (though the record is present in DB) broker = PersistenceBrokerFactory.defaultPersistenceBroker(); QueryByCriteria query = new QueryByCriteria(templ

Re: PB Tutorial: Query By Criteria on Object

2004-12-02 Thread Pulat Yunusov
Your "template" likely refers to an instance with the default value for the primary key field, which is 0, and there is no record with PK equal to zero in your database. Pulat Annapoorani Rathi wrote: Hi, I just started on OJB.. In PB Tutorial, the code snippet does not fetch me the record a

PB Tutorial: Query By Criteria on Object

2004-12-02 Thread Annapoorani Rathi
Hi, I just started on OJB.. In PB Tutorial, the code snippet does not fetch me the record and result is null (though the record is present in DB) broker = PersistenceBrokerFactory.defaultPersistenceBroker(); QueryByCriteria query = new QueryByCriteria(template); result = (Product)broker.g