cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Sometimes no data from Relation to small tables
Date Fri, 29 May 2009 10:46:35 GMT

On May 29, 2009, at 1:43 PM, Andrus Adamchik wrote:

>>
>> The modeler says no dependent PK
>> In all cases (actual 3) where this problem exists, the relation- 
>> target is a
>> kind of enumeration.
>> The relation points from nonPK-attribute to the PK (1 attribute) of  
>> the
>> enumeration-Table
>
> Can you mark the nonPK attribute as PK in Cayenne (even though it is  
> not), and check corresponding "toDep PK" checkbox? I suspect this is  
> where the problem lies.

Or alternatively make it 1..N where nonPK column is an FK (it looks  
like it is from your description, isn't it?)

Andrus

Mime
View raw message