On Monday, Feb 24, 2003, at 13:02 US/Eastern, Ed Greenberg wrote:
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?
it points to a set/get method in your class. It gets/sets a ProductGroup bean in this case.
* 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?
not compared, it just tells it that if there is a select to the table to use the productGroupId in the join
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
