Let me add that I am reverse engineering an existing database so the
keys are already there ...
James
James Treleaven wrote:
> Andrus,
>
> Actually, my problem is a bit different. It is that I do not know how
> to specify a <db-attribute-pair/> relationship in the modeler. For
> example, my understanding is that:
>
> <db-relationship name="toProject" source="member" target="project"
> toDependentPK="false" toMany="false">
> <db-attribute-pair source="project_id" target="project_id"/>
> </db-relationship>
>
> is equivalent to
>
> <db-relationship name="toProject" source="member" target="project"
> toDependentPK="false" toMany="false">
> </db-relationship>
>
> ... and I can see how to generate the later with the modeler.
> But I believe I can only generate the following by hand:
>
> <db-relationship name="toProject" source="member" target="project"
> toDependentPK="false" toMany="false">
> <db-attribute-pair source="project_id" target="id"/>
> </db-relationship>
>
> cheers,
> James
>
>
> Andrus Adamchik wrote:
>
>>
>> On Jun 4, 2004, at 3:44 PM, James Treleaven wrote:
>>
>>> I have had one difficulty with Cayenne with respect to the creation
>>> of the '<obj-relationship>' and '<db-relationship>' entries in my XML
>>> files in that I had to build them by hand, I couldn't get the modeler
>>> to add them for me. If I can figure out how to get the modeler to do
>>> this for me than I can post enthusiastic messages to
>>> theserverside.com and other places about Cayenne. So I will try
>>> again with the latest version of the modeler - and ask for help if I
>>> still can't figure out how to do it.
>>
>>
>>
>> James,
>>
>> I think this is the one you mentioned. Eric just came across the same
>> one under a very specific condition and opened a bug report:
>>
>> http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-142
>>
>> Will work on fixing it.
>>
>> Andrus
>>
>>
>
>
This archive was generated by hypermail 2.0.0 : Thu Jun 10 2004 - 11:42:01 EDT