Documentation Archive Developer
Search
PATH  WebObjects 4.5 Documentation > EOAdaptor Reference

Table of Contents

EOModelGroup



Setting Up A Model Group Programmatically

In the majority of applications, the automatic creation of the default model group is sufficient. However, if your particular application requires different model grouping semantics, you can create your own EOModelGroup instance, add the appropriate models, and then use that instance to replace the default EOModelGroup. The following code demonstrates the process:

String modelPath;  // Assume this exists
EOModelGroup group = new EOModelGroup();
	
group.addModelWithPath(modelPath);
EOModelGroup.setDefaultGroup(group);


Table of Contents