Hi Ejaz, On Nov 20, 2014, at 9:22 AM, Ejaz Ahmed <[email protected]> wrote:
> I have created an ofbiz component in hotdeploy using ./ant create-component. > I am not clear about entityengine entity grouping concept even after looking > at entity engine guide and entity engine configuration guide. I have to list > all my entities in entitygroup.xml file in my hotdeploy component's entitydef > folder. I have all my entities in org.ofbiz group. However this is not the > case for core applications like accounting and even the example app in > special purpose. How these applications handle entity groups? The entity group can be used to assign a group of entities to a different delegator (useful for example when they are part of a separate database). The entities can be assigned to an entity group by creating an xml file containing the <entitygroup> element (and declaring it in the ofbiz-component.xml with an entry like <entity-resource type="group"...). If you don't explicitly assign an entity to a group it is automatically assigned to the "org.ofbiz" group: this is what is done for most of the entities defined by applications. It should work the same for your custom entities, please double check your setup: you shouldn't need to create the entitygroup.xml file. > > Is there any relation between package-name and entity-group? I have seen > somewhere that package name is just for displaying entities in webtools > entity reference documentation. Is this the only purpose of package? Yes, it is just for that. Regards, Jacopo > > Regards: > > Ejaz Ahmed > > > >
