Thanks Rishi, I don't know if there is already a such description in wiki, if not we may add it in Contributor Best Practices...
Jacques From: "Rishi Solanki" <[email protected]>
Hi Ravi, Here are some rules or say patterns which are common for defining any entity. - Entity name must be in UpperCamelCase. - If entity name is abbreviation like Unit Od Measure (UOM) then treat it as one word and name is like Uom. - The Field name must be in lowerCamelCase and name should be self descriptive enough to show the purpose of the field. - If relation tag specify the relationship between two entities then the fk-name should contains the words from both entities separated by ("_") underscore. - If a entity relation with another entity defines more than one time then it should be differentiated by title attribute while defining a relation like "Form" or "To". - In the same if both field in the <key-map> tag are same then no need to specify rel-field-name. - In case of view entities the name will consists of name of all its member entities. - The <view-link> should be define for the proper view in the webtools. Apart from the above you can also refer to entitymodel.xsd for understanding the tags. And you can find several examples as given by Parimal is PostalAddress matches your requirement. Posted all the basic scenarios for defining the entity may I missed any, Hope the above notes helps you. -- Rishi Solanki Enterprise Software Developer HotWax Media Pvt. Ltd. On Wed, May 27, 2009 at 1:59 PM, Ravi Kumar <[email protected]> wrote:Hi all, Any one have idea on field name definition rule in entitymodel.xml??? Because i have field name like address_1, address_2, address_3. How to define those fields in entitymodel.xml??? Please help me. Thanks in advance Ravi
