You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by David E Jones <jo...@hotwaxmedia.com> on 2007/08/25 01:28:14 UTC
Re: svn commit: r569568 - in /ofbiz/trunk/applications/content: entitydef/entitymodel.xml
src/org/ofbiz/content/ContentManagementServices.java widget/forum/ForumForms.xml
widget/forum/ForumScreens.xml widget/forum/ForumTrees.xml
Adrian,
It's great that you're adding comments to the entity definitions to clarify these things.
There is a feature in the entity def XML files to help with this, namely the "description" element that goes under almost any of the elements in that file, including the "field" element.
-David
adrianc@apache.org wrote:
> Modified: ofbiz/trunk/applications/content/entitydef/entitymodel.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/entitydef/entitymodel.xml?rev=569568&r1=569567&r2=569568&view=diff
> ==============================================================================
> --- ofbiz/trunk/applications/content/entitydef/entitymodel.xml (original)
> +++ ofbiz/trunk/applications/content/entitydef/entitymodel.xml Fri Aug 24 16:16:18 2007
> @@ -187,7 +187,7 @@
> title="Content Entity">
> <field name="contentId" type="id-ne"></field>
> <field name="contentTypeId" type="id"></field>
> - <field name="ownerContentId" type="id"></field>
> + <field name="ownerContentId" type="id"></field> <!-- used for permissions checking -->
> <field name="decoratorContentId" type="id"></field>
> <field name="instanceOfContentId" type="id"></field>
> <field name="dataResourceId" type="id"></field>
> @@ -311,8 +311,8 @@
> <entity entity-name="ContentAssoc"
> package-name="org.ofbiz.content.content"
> title="Content Association Entity">
> - <field name="contentId" type="id-ne"></field>
> - <field name="contentIdTo" type="id-ne"></field>
> + <field name="contentId" type="id-ne"></field> <!-- "parent" content -->
> + <field name="contentIdTo" type="id-ne"></field> <!-- "child" or "sub" content -->
> <field name="contentAssocTypeId" type="id"></field>
> <field name="fromDate" type="date-time"></field>
> <field name="thruDate" type="date-time"></field>
Re: svn commit: r569568 - in /ofbiz/trunk/applications/content: entitydef/entitymodel.xml
src/org/ofbiz/content/ContentManagementServices.java widget/forum/ForumForms.xml
widget/forum/ForumScreens.xml widget/forum/ForumTrees.xml
Posted by Adrian Crum <ad...@hlmksw.com>.
Thanks David! I'll use that from now on.
David E Jones wrote:
>
> Adrian,
>
> It's great that you're adding comments to the entity definitions to
> clarify these things.
>
> There is a feature in the entity def XML files to help with this, namely
> the "description" element that goes under almost any of the elements in
> that file, including the "field" element.
>
> -David
>
>
> adrianc@apache.org wrote:
>
>> Modified: ofbiz/trunk/applications/content/entitydef/entitymodel.xml
>> URL:
>> http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/entitydef/entitymodel.xml?rev=569568&r1=569567&r2=569568&view=diff
>>
>> ==============================================================================
>>
>> --- ofbiz/trunk/applications/content/entitydef/entitymodel.xml (original)
>> +++ ofbiz/trunk/applications/content/entitydef/entitymodel.xml Fri Aug
>> 24 16:16:18 2007
>> @@ -187,7 +187,7 @@
>> title="Content Entity">
>> <field name="contentId" type="id-ne"></field>
>> <field name="contentTypeId" type="id"></field>
>> - <field name="ownerContentId" type="id"></field>
>> + <field name="ownerContentId" type="id"></field> <!-- used for
>> permissions checking -->
>> <field name="decoratorContentId" type="id"></field>
>> <field name="instanceOfContentId" type="id"></field>
>> <field name="dataResourceId" type="id"></field>
>> @@ -311,8 +311,8 @@
>> <entity entity-name="ContentAssoc"
>> package-name="org.ofbiz.content.content"
>> title="Content Association Entity">
>> - <field name="contentId" type="id-ne"></field>
>> - <field name="contentIdTo" type="id-ne"></field>
>> + <field name="contentId" type="id-ne"></field> <!-- "parent"
>> content -->
>> + <field name="contentIdTo" type="id-ne"></field> <!-- "child" or
>> "sub" content -->
>> <field name="contentAssocTypeId" type="id"></field>
>> <field name="fromDate" type="date-time"></field>
>> <field name="thruDate" type="date-time"></field>
>
>
>
Re: svn commit: r569568 - in /ofbiz/trunk/applications/content: entitydef/entitymodel.xml
src/org/ofbiz/content/ContentManagementServices.java widget/forum/ForumForms.xml
widget/forum/ForumScreens.xml widget/forum/ForumTrees.xml
Posted by Adrian Crum <ad...@hlmksw.com>.
David,
Could we update ModelField.java to make this information available at run time?
-Adrian
David E Jones wrote:
>
> Adrian,
>
> It's great that you're adding comments to the entity definitions to
> clarify these things.
>
> There is a feature in the entity def XML files to help with this, namely
> the "description" element that goes under almost any of the elements in
> that file, including the "field" element.
>
> -David
>
>
> adrianc@apache.org wrote:
>
>> Modified: ofbiz/trunk/applications/content/entitydef/entitymodel.xml
>> URL:
>> http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/entitydef/entitymodel.xml?rev=569568&r1=569567&r2=569568&view=diff
>>
>> ==============================================================================
>>
>> --- ofbiz/trunk/applications/content/entitydef/entitymodel.xml (original)
>> +++ ofbiz/trunk/applications/content/entitydef/entitymodel.xml Fri Aug
>> 24 16:16:18 2007
>> @@ -187,7 +187,7 @@
>> title="Content Entity">
>> <field name="contentId" type="id-ne"></field>
>> <field name="contentTypeId" type="id"></field>
>> - <field name="ownerContentId" type="id"></field>
>> + <field name="ownerContentId" type="id"></field> <!-- used for
>> permissions checking -->
>> <field name="decoratorContentId" type="id"></field>
>> <field name="instanceOfContentId" type="id"></field>
>> <field name="dataResourceId" type="id"></field>
>> @@ -311,8 +311,8 @@
>> <entity entity-name="ContentAssoc"
>> package-name="org.ofbiz.content.content"
>> title="Content Association Entity">
>> - <field name="contentId" type="id-ne"></field>
>> - <field name="contentIdTo" type="id-ne"></field>
>> + <field name="contentId" type="id-ne"></field> <!-- "parent"
>> content -->
>> + <field name="contentIdTo" type="id-ne"></field> <!-- "child" or
>> "sub" content -->
>> <field name="contentAssocTypeId" type="id"></field>
>> <field name="fromDate" type="date-time"></field>
>> <field name="thruDate" type="date-time"></field>
>
>
>