Author: deepak
Date: Mon Mar 20 17:49:22 2017 New Revision: 1787822 URL: http://svn.apache.org/viewvc?rev=1787822&view=rev Log: Improved: Convert ShipmentMethodType entity CRUD service to entity-auto (OFBIZ-8664) Thanks Pawan Verma for reporting. Modified: ofbiz/ofbiz-framework/trunk/applications/product/minilang/shipment/shipment/ShipmentServices.xml ofbiz/ofbiz-framework/trunk/applications/product/servicedef/services_shipment.xml Modified: ofbiz/ofbiz-framework/trunk/applications/product/minilang/shipment/shipment/ShipmentServices.xml URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/minilang/shipment/shipment/ShipmentServices.xml?rev=1787822&r1=1787821&r2=1787822&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/product/minilang/shipment/shipment/ShipmentServices.xml (original) +++ ofbiz/ofbiz-framework/trunk/applications/product/minilang/shipment/shipment/ShipmentServices.xml Mon Mar 20 17:49:22 2017 @@ -1229,23 +1229,6 @@ under the License. </if> </simple-method> - <!-- shipment method type services --> - <simple-method method-name="createShipmentMethodType" short-description="Creates a ShipmentMethodType"> - <make-value value-field="shipmentMethodType" entity-name="ShipmentMethodType"/> - <set-pk-fields map="parameters" value-field="shipmentMethodType"/> - <set-nonpk-fields map="parameters" value-field="shipmentMethodType"/> - <create-value value-field="shipmentMethodType"/> - </simple-method> - <simple-method method-name="updateShipmentMethodType" short-description="Updates a ShipmentMethodType"> - <entity-one entity-name="ShipmentMethodType" value-field="shipmentMethodType"/> - <set-nonpk-fields map="parameters" value-field="shipmentMethodType"/> - <store-value value-field="shipmentMethodType"/> - </simple-method> - <simple-method method-name="deleteShipmentMethodType" short-description="Deletes a ShipmentMethodType"> - <entity-one entity-name="ShipmentMethodType" value-field="shipmentMethodType"/> - <remove-value value-field="shipmentMethodType"/> - </simple-method> - <!-- quick ship entire order in one package per facility & ship group --> <simple-method method-name="quickShipEntireOrder" short-description="Quick ships an entire order from multiple facilities"> <!-- first get the order header; make sure we have a product store --> Modified: ofbiz/ofbiz-framework/trunk/applications/product/servicedef/services_shipment.xml URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/servicedef/services_shipment.xml?rev=1787822&r1=1787821&r2=1787822&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/product/servicedef/services_shipment.xml (original) +++ ofbiz/ofbiz-framework/trunk/applications/product/servicedef/services_shipment.xml Mon Mar 20 17:49:22 2017 @@ -39,22 +39,19 @@ under the License. <description>Deletes A CarrierShipmentMethod</description> <auto-attributes entity-name="CarrierShipmentMethod" include="pk" mode="IN" optional="false"/> </service> - <service name="createShipmentMethodType" engine="simple" - location="component://product/minilang/shipment/shipment/ShipmentServices.xml" invoke="createShipmentMethodType" auth="true"> + <service name="createShipmentMethodType" engine="entity-auto" default-entity-name="ShipmentMethodType" invoke="create" auth="true"> <description>Creates A ShipmentMethodType</description> - <auto-attributes entity-name="ShipmentMethodType" mode="IN" optional="false"/> - <override name="sequenceNum" optional="true"/> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> - <service name="updateShipmentMethodType" engine="simple" - location="component://product/minilang/shipment/shipment/ShipmentServices.xml" invoke="updateShipmentMethodType" auth="true"> + <service name="updateShipmentMethodType" engine="entity-auto" default-entity-name="ShipmentMethodType" invoke="update" auth="true"> <description>Updates A ShipmentMethodType</description> - <auto-attributes entity-name="ShipmentMethodType" mode="IN" optional="false"/> - <override name="sequenceNum" optional="true"/> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> - <service name="deleteShipmentMethodType" engine="simple" - location="component://product/minilang/shipment/shipment/ShipmentServices.xml" invoke="deleteShipmentMethodType" auth="true"> + <service name="deleteShipmentMethodType" engine="entity-auto" default-entity-name="ShipmentMethodType" invoke="delete" auth="true"> <description>Deletes A ShipmentMethodType</description> - <auto-attributes entity-name="ShipmentMethodType" include="pk" mode="IN" optional="false"/> + <auto-attributes include="pk" mode="IN" optional="false"/> </service> <service name="createOrderShipmentPlan" engine="simple" |
Free forum by Nabble | Edit this page |