|
@@ -20,6 +20,18 @@ import java.util.stream.Collectors;
|
20
|
20
|
*/
|
21
|
21
|
public class GenerateOptions {
|
22
|
22
|
|
|
23
|
+ private DataSourceSelection _selection;
|
|
24
|
+
|
|
25
|
+ private String _modelsRelativePath;
|
|
26
|
+
|
|
27
|
+ private String _dataSourceTemplateRelativePath;
|
|
28
|
+
|
|
29
|
+ private String _modelsTemplateRelativePath;
|
|
30
|
+
|
|
31
|
+ private String _configAbsolutePath;
|
|
32
|
+
|
|
33
|
+ private String _filesExtension;
|
|
34
|
+
|
23
|
35
|
public GenerateOptions(DbDataSource source) {
|
24
|
36
|
_modelsRelativePath = "Models";
|
25
|
37
|
_dataSourceTemplateRelativePath = "Templates" + File.separator + "DataSource.twig";
|
|
@@ -44,18 +56,6 @@ public class GenerateOptions {
|
44
|
56
|
_selection.setTables(tableSelections);
|
45
|
57
|
}
|
46
|
58
|
|
47
|
|
- private DataSourceSelection _selection;
|
48
|
|
-
|
49
|
|
- private String _modelsRelativePath;
|
50
|
|
-
|
51
|
|
- private String _dataSourceTemplateRelativePath;
|
52
|
|
-
|
53
|
|
- private String _modelsTemplateRelativePath;
|
54
|
|
-
|
55
|
|
- private String _configAbsolutePath;
|
56
|
|
-
|
57
|
|
- private String _filesExtension;
|
58
|
|
-
|
59
|
59
|
public HashMap<String, Object> toMap()
|
60
|
60
|
{
|
61
|
61
|
HashMap<String, Object> map = new HashMap<>();
|