svn commit: r1831501 - /ofbiz/ofbiz-framework/trunk/applications/order/servicedef/services_requirement.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1831501 - /ofbiz/ofbiz-framework/trunk/applications/order/servicedef/services_requirement.xml

jleroux@apache.org
Author: jleroux
Date: Sat May 12 21:15:30 2018
New Revision: 1831501

URL: http://svn.apache.org/viewvc?rev=1831501&view=rev
Log:
Improved: Convert Requirement related services from simple to entity-auto
(OFBIZ-10395)

I was wrong to removes "useless" default optional="true" for auto-attributes.
What misleaded me is that optional="true" is the default for override attribute
but it's the contrary for auto-attributes (which makes sense)

Also I used override instead of attribute to add the custRequestId and
custRequestItemSeqId fields :/

Modified:
    ofbiz/ofbiz-framework/trunk/applications/order/servicedef/services_requirement.xml

Modified: ofbiz/ofbiz-framework/trunk/applications/order/servicedef/services_requirement.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/servicedef/services_requirement.xml?rev=1831501&r1=1831500&r2=1831501&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/order/servicedef/services_requirement.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/order/servicedef/services_requirement.xml Sat May 12 21:15:30 2018
@@ -26,11 +26,11 @@ under the License.
 
     <service name="createRequirement" default-entity-name="Requirement" engine="entity-auto" invoke="create" auth="true">
         <description>Create a new requirement</description>
-        <auto-attributes include="pk" mode="INOUT"/>
-        <auto-attributes include="nonpk" mode="IN"/>
+        <auto-attributes include="pk" mode="INOUT" optional="true"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
+        <attribute name="custRequestId" mode="IN" type="String" optional="true"/>
+        <attribute name="custRequestItemSeqId" mode="IN" type="String" optional="true"/>
         <override name="statusId" default-value="REQ_CREATED"/>
-        <override name="custRequestId"/>
-        <override name="custRequestItemSeqId"/>
     </service>
     <service name="updateRequirement" default-entity-name="Requirement" engine="entity-auto" invoke="update" auth="true">
         <description>Update an existing requirement</description>