MappingTool tool = new MappingTool(conf, action, false); Configurations.configureInstance(tool, conf, props, "SynchronizeMappings");
/** * Synchronize the mappings of the classes listed in the configuration. */ protected void synchronizeMappings(ClassLoader loader, JDBCConfiguration conf) { String action = conf.getSynchronizeMappings(); if (StringUtils.isEmpty(action)) return; MappingRepository repo = conf.getMappingRepositoryInstance(); Collection<Class<?>> classes = repo.loadPersistentTypes(false, loader); if (classes.isEmpty()) return; String props = Configurations.getProperties(action); action = Configurations.getClassName(action); MappingTool tool = new MappingTool(conf, action, false); Configurations.configureInstance(tool, conf, props, "SynchronizeMappings"); // initialize the schema for (Class<?> cls : classes) { try { tool.run(cls); } catch (IllegalArgumentException iae) { throw new UserException(_loc.get("bad-synch-mappings", action, Arrays.asList(MappingTool.ACTIONS))); } } tool.record(); }
/** * Synchronize the mappings of the classes listed in the configuration. */ protected void synchronizeMappings(ClassLoader loader, JDBCConfiguration conf) { String action = conf.getSynchronizeMappings(); if (StringUtils.isEmpty(action)) return; MappingRepository repo = conf.getMappingRepositoryInstance(); Collection<Class<?>> classes = repo.loadPersistentTypes(false, loader); if (classes.isEmpty()) return; String props = Configurations.getProperties(action); action = Configurations.getClassName(action); MappingTool tool = new MappingTool(conf, action, false); Configurations.configureInstance(tool, conf, props, "SynchronizeMappings"); // initialize the schema for (Class<?> cls : classes) { try { tool.run(cls); } catch (IllegalArgumentException iae) { throw new UserException(_loc.get("bad-synch-mappings", action, Arrays.asList(MappingTool.ACTIONS))); } } tool.record(); }
/** * Synchronize the mappings of the classes listed in the configuration. */ protected void synchronizeMappings(ClassLoader loader, JDBCConfiguration conf) { mapSchemaGenerationToSynchronizeMappings(conf); String action = conf.getSynchronizeMappings(); if (StringUtil.isEmpty(action)) return; MappingRepository repo = conf.getMappingRepositoryInstance(); Collection<Class<?>> classes = repo.loadPersistentTypes(false, loader); if (classes.isEmpty()) return; String props = Configurations.getProperties(action); action = Configurations.getClassName(action); MappingTool tool = new MappingTool(conf, action, false, loader); Configurations.configureInstance(tool, conf, props, "SynchronizeMappings"); // initialize the schema for (Class<?> cls : classes) { try { tool.run(cls); } catch (IllegalArgumentException iae) { throw new UserException(_loc.get("bad-synch-mappings", action, Arrays.asList(MappingTool.ACTIONS))); } } tool.record(); }
/** * Synchronize the mappings of the classes listed in the configuration. */ protected void synchronizeMappings(ClassLoader loader, JDBCConfiguration conf) { mapSchemaGenerationToSynchronizeMappings(conf); String action = conf.getSynchronizeMappings(); if (StringUtil.isEmpty(action)) return; MappingRepository repo = conf.getMappingRepositoryInstance(); Collection<Class<?>> classes = repo.loadPersistentTypes(false, loader); if (classes.isEmpty()) return; String props = Configurations.getProperties(action); action = Configurations.getClassName(action); MappingTool tool = new MappingTool(conf, action, false, loader); Configurations.configureInstance(tool, conf, props, "SynchronizeMappings"); // initialize the schema for (Class<?> cls : classes) { try { tool.run(cls); } catch (IllegalArgumentException iae) { throw new UserException(_loc.get("bad-synch-mappings", action, Arrays.asList(MappingTool.ACTIONS))); } } tool.record(); }
tool = new MappingTool(conf, flags.action, flags.meta); } catch (IllegalArgumentException iae) { return false;
tool = new MappingTool(conf, flags.action, flags.meta); } catch (IllegalArgumentException iae) { return false;
tool = new MappingTool(conf, flags.action, flags.meta, loader); } catch (IllegalArgumentException iae) { return false;
tool = new MappingTool(conf, flags.action, flags.meta, loader); } catch (IllegalArgumentException iae) { return false;
tool = new MappingTool(conf, flags.action, flags.meta); } catch (IllegalArgumentException iae) { return false;