polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [6/6] polygene-java git commit: :tools:generator fix storage module compilation
Date Mon, 05 Jun 2017 09:54:45 GMT
:tools:generator fix storage module compilation

Memory & Preferences ES have no configuration
SQL ES have a common configuration


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/767b3616
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/767b3616
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/767b3616

Branch: refs/heads/develop
Commit: 767b36167eed5800c0f25a653d5e534fad621f07
Parents: a4e1318
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Mon Jun 5 11:18:48 2017 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Mon Jun 5 11:54:16 2017 +0200

----------------------------------------------------------------------
 .../InfrastructureLayer/StorageModule/bootstrap.tmpl     | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/767b3616/tools/generator-polygene/app/templates/InfrastructureLayer/StorageModule/bootstrap.tmpl
----------------------------------------------------------------------
diff --git a/tools/generator-polygene/app/templates/InfrastructureLayer/StorageModule/bootstrap.tmpl
b/tools/generator-polygene/app/templates/InfrastructureLayer/StorageModule/bootstrap.tmpl
index ce33d13..4220bd9 100644
--- a/tools/generator-polygene/app/templates/InfrastructureLayer/StorageModule/bootstrap.tmpl
+++ b/tools/generator-polygene/app/templates/InfrastructureLayer/StorageModule/bootstrap.tmpl
@@ -26,7 +26,18 @@ import org.apache.polygene.bootstrap.AssemblyException;
 import org.apache.polygene.bootstrap.LayerAssembly;
 import org.apache.polygene.bootstrap.ModuleAssembly;
 import org.apache.polygene.bootstrap.layered.ModuleAssembler;
+<%
+if( polygene.entitystore !== 'Memory' && polygene.entitystore !== 'Preferences' &&
polygene.entitystore.indexOf('SQL') == -1 ) {
+%>
 import org.apache.polygene.entitystore.<%- polygene.entitystoremodule %>.<%- polygene.entitystore
%>EntityStoreConfiguration;
+<%
+}
+if( polygene.entitystore.indexOf('SQL') >= 0 ) {
+%>
+import org.apache.polygene.entitystore.sql.SQLEntityStoreConfiguration;
+<%
+}
+%>
 import org.apache.polygene.entitystore.<%- polygene.entitystoremodule %>.assembly.<%-
polygene.entitystore %>EntityStoreAssembler;
 <%
 if( polygene.entitystore.indexOf('SQL') >= 0 ) {


Mime
View raw message