If you have 2 objects say X and Y.  X has a 1-n relation to Y.

Why are folks doing something like the following:

/**
 * @ejb.relation
 *    name="blah"
 *    role-name="grok-has-blah"
 *
 * @jboss.relation
 *    fk-constraint="true"
 *    fk-column="foo_id"
 *    related-pk-field="fooId"
 *
 * @jboss.relation
 *    fk-constraint="true"
 *    fk-column="bar_id"
 *    related-pk-field="barId"
 */
public abstract zap.interfaces.BlahLocal getBlah();


When X ( in a pure object sense ) should have no knowledge of the 
internals of Y?  The usage of "columns" here seems to me to break 
the object abstraction model. 

Thanks.




-------------------------------------------------------
This SF.net email is sponsored by: The Sourceforge Network Survey
Take Our Survey and You Could Win a $500 Gift Certificate!
http://ugamsolutions.com/psurvey/osdn/SourceForge/index_sourceforge.htm
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to