01: package com.completex.objective.persistency.examples.ex005;
02:
03: import com.completex.objective.tools.generators.PersistentObjectGenerator;
04: import com.completex.objective.util.PropertyMap;
05: import com.completex.objective.persistency.examples.ExamplesHelper;
06:
07: import java.sql.SQLException;
08:
09: /**
10: * @author Gennady Krizhevsky
11: */
12: public class GenObjects {
13:
14: public static String configPath = ExamplesHelper
15: .pdConfigPath(GenObjects.class);
16: public static String objectConfigPath = ExamplesHelper
17: .poConfigPath(GenObjects.class);
18:
19: public static void main(String[] args) throws Exception,
20: SQLException, IllegalAccessException,
21: InstantiationException, ClassNotFoundException {
22: GenObjects gen = new GenObjects();
23: gen.generateObjects();
24: }
25:
26: private void generateObjects() throws Exception {
27: PersistentObjectGenerator objectGenerator = new PersistentObjectGenerator();
28: PropertyMap objectProperties = PropertyMap
29: .toPropertyMap(objectGenerator
30: .extractProperties(com.completex.objective.persistency.examples.ex005.GenObjects.objectConfigPath));
31: objectGenerator.process(objectProperties);
32: }
33:
34: }
|