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
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
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
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