This guide describes the conventions for working with EDL models.
- Define every complex type (e.g. orm class, capi interface, ...) in its own *.edl file.
- Store the *.edl files in a separate folder in the cartridge, e.g., in the edl folder.
- Create a folder structure according to the namespace of the EDL types, like:
- Use 4 spaces instead of tabs.
- Do not use special characters in comments (use plain english).
- Use a coding style similar to the Java programming conventions, see Guide - Java Source Code Style Guide.
- Use the suffix PO for ORM classes (stands for persistent object).
Order of Elements
Arrange the members of a class in the following order, from top to bottom:
- Contraints: primary key, alternate key, semantic key, index declarations
- Attributes: all attributes
- Relations: all relations
- Operations: all operations
The order of attributes and relations matters. This is important for the generated code in several places, like the order of mandatory parameters in the create-methods of ORM factories.
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.