Hi, I'm trying to understand this, as taken from the tutorial:


... <reference-descriptor name="productGroup" class-ref="org.apache.ojb.broker.ProductGroup" > <foreignkey field-ref="productGroupId"/> </reference-descriptor>

Questions:

* What is the significance of the name attribute? Where does it point. In the example, there is nothing named productGroup at all, though there is a ProductGroup and a productGroupId. Is this a newly made up name? Is it the name of the class-ref object for the other class? Or what?

* Is the implication of the foreign key that the productGroupId field in the table being defined will be compared to the primary key of the table referenced by the class-ref?

Thanks,
</edg>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to