if (args.length > 1 && args[1].equalsIgnoreCase("fixTables")) { fixManyToManyRelationsTablesNamesAndKeys(ojbMetadata, domainModel); } else { updateOJBMappingFromDomainModel(ojbMetadata, domainModel); }
updateOJBMappingFromDomainModel(ojbMetadata, domainModel);
    public static void main(String[] args) throws Exception {        // String[] dmlFilesArray = { args[0] };        String[] dmlFilesArray = { "config/domain_model.dml" };        DomainModel domainModel = DmlCompiler.getDomainModel(dmlFilesArray);        Map ojbMetadata = MetadataManager.getInstance().getGlobalRepository().getDescriptorTable();        if (args.length > 1 && args[1].equalsIgnoreCase("fixTables")) {            fixManyToManyRelationsTablesNamesAndKeys(ojbMetadata, domainModel);        } else {            updateOJBMappingFromDomainModel(ojbMetadata, domainModel);        }        printUnmmapedAttributes(unmappedObjectReferenceAttributesInDML,                "UnmappedObjectReferenceAttributes in DML:");        printUnmmapedAttributes(unmappedCollectionReferenceAttributesInDML,                "UnmappedCollectionReferenceAttributes in DML:");        printUnmmapedAttributes(unmappedObjectReferenceAttributesInOJB,                "UnmappedObjectReferenceAttributes in OJB:");        printUnmmapedAttributes(unmappedCollectionReferenceAttributesInOJB,                "UnmappedCollectionReferenceAttributes in OJB:");        System.exit(0);    }