Author: jacopoc
Date: Sat Aug 21 05:39:59 2010
New Revision: 987698

URL: http://svn.apache.org/viewvc?rev=987698&view=rev
Log:
Simlified service definitions for CRUD operations on the TechDataCalendarWeek 
entity: this fixes an error happening when the exception week was edited.


Modified:
    ofbiz/trunk/applications/manufacturing/servicedef/services_calendar.xml

Modified: 
ofbiz/trunk/applications/manufacturing/servicedef/services_calendar.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/servicedef/services_calendar.xml?rev=987698&r1=987697&r2=987698&view=diff
==============================================================================
--- ofbiz/trunk/applications/manufacturing/servicedef/services_calendar.xml 
(original)
+++ ofbiz/trunk/applications/manufacturing/servicedef/services_calendar.xml Sat 
Aug 21 05:39:59 2010
@@ -24,24 +24,22 @@ under the License.
     <version>1.0</version>
 
     <!-- Routing services -->
-    <service name="createCalendar" engine="simple"
+    <service name="createCalendar" engine="simple" 
default-entity-name="TechDataCalendar"
             
location="component://manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleServices.xml"
 invoke="createCalendar">
         <description>Create a calendar</description>
-        <attribute name="calendarId" type="String" mode="IN" optional="false"/>
-        <attribute name="description" type="String" mode="IN" optional="true"/>
-        <attribute name="calendarWeekId" type="String" mode="IN" 
optional="true"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="updateCalendar" engine="simple"
+    <service name="updateCalendar" engine="simple" 
default-entity-name="TechDataCalendar"
             
location="component://manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleServices.xml"
 invoke="updateCalendar">
         <description>Update a calendar</description>
-        <attribute name="calendarId" type="String" mode="IN" optional="false"/>
-        <attribute name="description" type="String" mode="IN" optional="true"/>
-        <attribute name="calendarWeekId" type="String" mode="IN" 
optional="true"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="removeCalendar" engine="simple"
+    <service name="removeCalendar" engine="simple" 
default-entity-name="TechDataCalendar"
             
location="component://manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleServices.xml"
 invoke="removeCalendar">
         <description>Remove a calendar</description>
-        <attribute name="calendarId" type="String" mode="IN" optional="false"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
     </service>
 
     <service name="createCalendarWeek" engine="simple" 
default-entity-name="TechDataCalendarWeek"
@@ -62,48 +60,38 @@ under the License.
         <auto-attributes include="pk" mode="IN" optional="false"/>
     </service>
 
-    <service name="createCalendarExceptionDay" engine="simple"
+    <service name="createCalendarExceptionDay" engine="simple" 
default-entity-name="TechDataCalendarExcDay"
             
location="component://manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleServices.xml"
 invoke="createCalendarExceptionDay">
         <description>Create a calendar ExceptionDay</description>
-        <attribute name="calendarId" type="String" mode="IN" optional="false"/>
-        <attribute name="description" type="String" mode="IN" optional="true"/>
-        <attribute name="exceptionDateStartTime" type="java.sql.Timestamp" 
mode="IN" optional="false"/>
-        <attribute name="exceptionCapacity" type="BigDecimal" mode="IN" 
optional="true"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="updateCalendarExceptionDay" engine="simple"
+    <service name="updateCalendarExceptionDay" engine="simple" 
default-entity-name="TechDataCalendarExcDay"
             
location="component://manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleServices.xml"
 invoke="updateCalendarExceptionDay">
         <description>Update a calendar ExceptionDay</description>
-        <attribute name="calendarId" type="String" mode="IN" optional="false"/>
-        <attribute name="description" type="String" mode="IN" optional="true"/>
-        <attribute name="exceptionDateStartTime" type="java.sql.Timestamp" 
mode="IN" optional="false"/>
-        <attribute name="exceptionCapacity" type="BigDecimal" mode="IN" 
optional="true"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="removeCalendarExceptionDay" engine="simple"
+    <service name="removeCalendarExceptionDay" engine="simple" 
default-entity-name="TechDataCalendarExcDay"
             
location="component://manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleServices.xml"
 invoke="removeCalendarExceptionDay">
         <description>Update a calendar ExceptionDay</description>
-        <attribute name="calendarId" type="String" mode="IN" optional="false"/>
-        <attribute name="exceptionDateStartTime" type="java.sql.Timestamp" 
mode="IN" optional="false"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
     </service>
-    <service name="createCalendarExceptionWeek" engine="simple"
+    <service name="createCalendarExceptionWeek" engine="simple" 
default-entity-name="TechDataCalendarExcWeek"
             
location="component://manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleServices.xml"
 invoke="createCalendarExceptionWeek">
         <description>Create a Calendar Exception Week</description>
-        <attribute name="calendarId" type="String" mode="IN" optional="false"/>
-        <attribute name="description" type="String" mode="IN" optional="true"/>
-        <attribute name="exceptionDateStart" type="java.sql.Date" mode="IN" 
optional="false"/>
-        <attribute name="calendarWeekId" type="String" mode="IN" 
optional="true"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="updateCalendarExceptionWeek" engine="simple"
+    <service name="updateCalendarExceptionWeek" engine="simple" 
default-entity-name="TechDataCalendarExcWeek"
             
location="component://manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleServices.xml"
 invoke="updateCalendarExceptionWeek">
         <description>Update a Calendar Exception Week</description>
-        <attribute name="calendarId" type="String" mode="IN" optional="false"/>
-        <attribute name="description" type="String" mode="IN" optional="true"/>
-        <attribute name="exceptionDateStart" type="java.sql.Date" mode="IN" 
optional="false"/>
-        <attribute name="calendarWeekId" type="String" mode="IN" 
optional="true"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="removeCalendarExceptionWeek" engine="simple"
+    <service name="removeCalendarExceptionWeek" engine="simple" 
default-entity-name="TechDataCalendarExcWeek"
             
location="component://manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleServices.xml"
 invoke="removeCalendarExceptionWeek">
         <description>Remove a Calendar Exception Week</description>
-        <attribute name="calendarId" type="String" mode="IN" optional="false"/>
-        <attribute name="exceptionDateStart" type="java.sql.Date" mode="IN" 
optional="false"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
     </service>
 </services>


Reply via email to