Author: deepak
Date: Mon Mar 20 17:31:11 2017 New Revision: 1787816 URL: http://svn.apache.org/viewvc?rev=1787816&view=rev Log: Improved: Convert CarrierShipmentMethod entity CRUD service to entity-auto (OFBIZ-8657) Thanks Pawan Verma for your contribution. 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=1787816&r1=1787815&r2=1787816&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:31:11 2017 @@ -1230,17 +1230,6 @@ under the License. </simple-method> <!-- shipment method type services --> - <simple-method method-name="createCarrierShipmentMethod" short-description="Creates a CarrierShipmentMethod"> - <make-value value-field="carrierShipmentMethod" entity-name="CarrierShipmentMethod"/> - <set-pk-fields map="parameters" value-field="carrierShipmentMethod"/> - <set-nonpk-fields map="parameters" value-field="carrierShipmentMethod"/> - <create-value value-field="carrierShipmentMethod"/> - </simple-method> - <simple-method method-name="deleteCarrierShipmentMethod" short-description="Removes a CarrierShipmentMethod"> - <entity-one entity-name="CarrierShipmentMethod" value-field="carrierShipmentMethod"/> - <remove-value value-field="carrierShipmentMethod"/> - </simple-method> - <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"/> 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=1787816&r1=1787815&r2=1787816&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:31:11 2017 @@ -25,8 +25,7 @@ under the License. <version>1.0</version> <!-- Shipment Services --> - <service name="createCarrierShipmentMethod" engine="simple" - location="component://product/minilang/shipment/shipment/ShipmentServices.xml" invoke="createCarrierShipmentMethod" auth="true"> + <service name="createCarrierShipmentMethod" engine="entity-auto" invoke="create" auth="true"> <description>Creates A CarrierShipmentMethod</description> <auto-attributes entity-name="CarrierShipmentMethod" include="pk" mode="IN" optional="false"/> <auto-attributes entity-name="CarrierShipmentMethod" include="nonpk" mode="IN" optional="true"/> @@ -36,8 +35,7 @@ under the License. <auto-attributes entity-name="CarrierShipmentMethod" include="pk" mode="IN" optional="false"/> <auto-attributes entity-name="CarrierShipmentMethod" include="nonpk" mode="IN" optional="true"/> </service> - <service name="deleteCarrierShipmentMethod" engine="simple" - location="component://product/minilang/shipment/shipment/ShipmentServices.xml" invoke="deleteCarrierShipmentMethod" auth="true"> + <service name="deleteCarrierShipmentMethod" engine="entity-auto" invoke="delete" auth="true"> <description>Deletes A CarrierShipmentMethod</description> <auto-attributes entity-name="CarrierShipmentMethod" include="pk" mode="IN" optional="false"/> </service> |
Free forum by Nabble | Edit this page |