O'Reilly logo

Apache OFBiz Cookbook by Ruth Hoffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a new entity model

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.

Getting ready

Make sure you have an entity definition file defined in an existing ofbiz-component.xml file.

How to do it...

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" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required