thank you for answsering, but i must say, i couldnt follow both of your
answers.
my solution: i wonder that this problem has such answer!
however.
1. remove all pk checks in the DBEntety.
2. menu : Project|sync ObjEntety with DBEntety.
3. reset pk checks as they where.
the pk is visible for the Query for nr= $nr.
i would say this is a bug in cayenne.
Regards.
Sako.
----- Original Message -----
From: "Andrus Adamchik" <andru..bjectstyle.org>
To: <cayenne-use..bjectstyle.org>
Sent: Thursday, September 02, 2004 4:21 PM
Subject: Re: how to qualifier a PK?
.. or use our new DataObjectUtils that are not yet documented in the
user guide:
http://objectstyle.org/cayenne/api/cayenne/org/objectstyle/cayenne/
DataObjectUtils.html
Andrus
On Sep 2, 2004, at 8:53 AM, Eric Schneider wrote:
> Sako,
>
> Try the ExpressionFactory.matchDbExp() API. Something like:
>
> Expression qual = ExpressionFactory.matchDbExp("MY_PK_COL", 66);
>
> Cheers,
> e.
>
> On Sep 2, 2004, at 7:58 AM, Sako! wrote:
>
>> Hello,
>>
>> i imported a Table from the DB in Cayenne.
>> i want to search for a row where pk = xxx
>> i used the qualifier in the query lik
>> nr=$nr
>>
>> Cayenne say : invalid path in the qualifier 'nr'.
>>
>> how can i make the nr visible for cayenne?
>>
>> thanks.
This archive was generated by hypermail 2.0.0 : Thu Sep 02 2004 - 10:36:51 EDT