To effectively manage an unlimited number of entities, databases, and database connections, the Entity Engine groups together entities that map to tables on the same physical database. For example, out-of-the-box, all the OFBiz ERP entities that are physically implemented as tables on the Derby database are grouped together in the org.ofbiz
entity group.
There is no need to create new entity groups if your entities will be part of the OFBiz schema. You can use the default OFBiz instance group-name of org.ofbiz
.
To add more entities that are not part of the Derby entity group, or if you wish to separate out your entities into different entity groups, create new entity groups as shown here:
1. Within the
entityengine.xml
file (~framework/entity/config/entityengine.xml), define adelegator
for the group with a pointer to thedatasource
database configuration element. Eachdelegator
is defined with adelegator
element as shown here:<delegator...