return rowsChanged;
}
public static int generateData(GenericDelegator delegator, List errorMessages) throws GenericEntityException {
int rowsChanged = 0;
ModelReader reader = delegator.getModelReader();
Collection entityCol = reader.getEntityNames();
Iterator classNamesIterator = entityCol.iterator();
while (classNamesIterator != null && classNamesIterator.hasNext()) {
ModelEntity entity = reader.getModelEntity((String) classNamesIterator.next());
String baseName = entity.getPlainTableName();
if (entity instanceof ModelViewEntity) {
baseName = ModelUtil.javaNameToDbName(entity.getEntityName());
}