Hi Divesh, Aditi For #1 I would just like to add that its not necessary to use override tags with interfaces only. You can obviously use them when you use <auto-attribute> tag in you service definition. So the use of <override> tag in this service definition is completely fine and as this service definition comes from OFBiz itself, it can't be wrong :). The use of <override> tag is to override the behavior of a field that comes from an interface or <auto-attribute> tag or some other implemented service, in our service definition.
On Mon, Sep 29, 2008 at 8:27 PM, Divesh Dutta <[EMAIL PROTECTED]>wrote: > <service name="createExample" default-entity-name="Example" > engine="entity-auto" invoke="create" auth="true"> > <description>Create a Example</description> > <permission-service service-name="exampleGenericPermission" > main-action="CREATE"/> > <auto-attributes include="pk" mode="OUT" optional="false"/> > <auto-attributes include="nonpk" mode="IN" optional="true"/> > <override name="exampleTypeId" optional="false"/> > <override name="statusId" optional="false"/> > <override name="exampleName" optional="false"/> > </service> > > 1)This is service definition.you dont need override tag here.if you > implement any interface just like when we implement any class in java,then > you need override tag. > > 2)engine="entity-auto":: reason for using this tag is given below in this > link: > > http://www.nabble.com/The-fancy-new-entity-auto-service-execution-engine-td18674040.html > > 3)engine="entity-auto" invoke="create" play the role for creating the > records for the default-entity "Example." > > 4) <auto-attributes include="pk" mode="OUT" optional="false"/> > <auto-attributes include="nonpk" mode="IN" optional="true"/> > This tag automatically includes primary key and non primary key of > default-entity-name="Example" > Additional tags can be added by: > <attribute name="firstName" mode="IN" type="String" optional="false"/> > 5)<auto-attributes tag are used only in service definition. > > 6)Please refer to practice application.I have already given you the > link.most of the answer of your question are given over there. > > > > Thanks And Regards > > Divesh Dutta > > Hotwax Media Pvt Ltd. > > > > > > > > > > > > > > > -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com [EMAIL PROTECTED]