The Entity Engine supports an unlimited number of entity definitions spread across an unlimited number of data sources. To create a new entity, sometimes called the entity model, is simply to add the entity's definition to an entity definition file.
Make sure you have an entity definition file defined in an existing ofbiz-component.xml
file.
To create a new entity, follow these steps:
1. Open an existing entity definition file or create a new one.
2. Add one or more
entity
elements as shown here. Please note: XML declarations shown below are for demonstration purposes only. Statements have been removed to make reading easier:<entity entity-name="EntityName" package-name="org.ofbiz.somePackageName" title="My New Entity"> <!-- Entity definition XML declaration(s) go here. Removed for demonstration purposes --> </entity>
3. Each
entity
element will have one or more of the following declarations added:field
element declarations...