Author: byersa
Date: Tue Jan 23 20:26:21 2007 New Revision: 499253 URL: http://svn.apache.org/viewvc?view=rev&rev=499253 Log: Changing the direction and definition of the ContentAssocViewTo/From and ContentAssocDataResourceViewTo/From view defs. Basically flip-flopping the definitions of each pair. This is to follow the rule regarding ContentAssoc that contentId and mapKey combine to point *to* the contentIdTo child content. Modified: ofbiz/trunk/applications/content/entitydef/entitymodel.xml Modified: ofbiz/trunk/applications/content/entitydef/entitymodel.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/entitydef/entitymodel.xml?view=diff&rev=499253&r1=499252&r2=499253 ============================================================================== --- ofbiz/trunk/applications/content/entitydef/entitymodel.xml (original) +++ ofbiz/trunk/applications/content/entitydef/entitymodel.xml Tue Jan 23 20:26:21 2007 @@ -250,7 +250,7 @@ <alias-all entity-alias="CA" prefix="ca"/> <alias-all entity-alias="DR" prefix="dr"/> <alias entity-alias="CA" name="contentIdStart" field="contentIdTo"/> - <view-link entity-alias="CO" rel-entity-alias="CA" rel-optional="true"> + <view-link entity-alias="CA" rel-entity-alias="CO" rel-optional="true"> <key-map field-name="contentId" rel-field-name="contentId"/> </view-link> <view-link entity-alias="CO" rel-entity-alias="DR" rel-optional="true"> @@ -342,7 +342,7 @@ <field name="description" type="description"></field> <prim-key field="contentAssocTypeId"/> </entity> - <view-entity entity-name="ContentAssocViewFrom" + <view-entity entity-name="ContentAssocViewFrom" package-name="org.ofbiz.content.content" title="Main Assoc To"> <member-entity entity-alias="CO" entity-name="Content"/> @@ -350,7 +350,7 @@ <alias-all entity-alias="CO"/> <alias-all entity-alias="CA" prefix="ca"/> <alias entity-alias="CA" name="contentIdStart" field="contentIdTo"/> - <view-link entity-alias="CO" rel-entity-alias="CA"> + <view-link entity-alias="CA" rel-entity-alias="CO"> <key-map field-name="contentId"/> </view-link> </view-entity> @@ -362,8 +362,8 @@ <alias-all entity-alias="CO"/> <alias-all entity-alias="CA" prefix="ca"/> <alias entity-alias="CA" name="contentIdStart" field="contentId"/> - <view-link entity-alias="CO" rel-entity-alias="CA"> - <key-map field-name="contentId" rel-field-name="contentIdTo"/> + <view-link entity-alias="CA" rel-entity-alias="CO"> + <key-map field-name="contentIdTo" rel-field-name="contentId"/> </view-link> </view-entity> <entity entity-name="ContentAttribute" @@ -1498,8 +1498,8 @@ <alias-all entity-alias="CO"/> <alias-all entity-alias="CA" prefix="ca"/> <alias entity-alias="CA" name="contentIdStart" field="contentIdTo"/> - <view-link entity-alias="CO" rel-entity-alias="CA" rel-optional="true"> - <key-map field-name="contentId"/> + <view-link entity-alias="CA" rel-entity-alias="CO" rel-optional="true"> + <key-map field-name="contentIdTo" rel-field-name="contentId" /> </view-link> </view-entity> <!-- |
Free forum by Nabble | Edit this page |