ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [1/2] ignite git commit: IGNITE-1749 Fixed java code generation: import types for indexes.
Date Tue, 03 Nov 2015 04:47:03 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc1 c1325c896 -> 6ef6c0be6


IGNITE-1749 Fixed java code generation: import types for indexes.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/31f19a12
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/31f19a12
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/31f19a12

Branch: refs/heads/ignite-843-rc1
Commit: 31f19a12c6e8b74dd00e9893063f0c954f38bcde
Parents: c1325c8
Author: vsisko <vsisko@gridgain.com>
Authored: Tue Nov 3 11:45:07 2015 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Tue Nov 3 11:45:07 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/routes/generator/generator-java.js                 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/31f19a12/modules/control-center-web/src/main/js/routes/generator/generator-java.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/routes/generator/generator-java.js b/modules/control-center-web/src/main/js/routes/generator/generator-java.js
index 32a15e1..6ed6382 100644
--- a/modules/control-center-web/src/main/js/routes/generator/generator-java.js
+++ b/modules/control-center-web/src/main/js/routes/generator/generator-java.js
@@ -1121,7 +1121,7 @@ $generatorJava.metadataDatabaseFields = function (res, meta, fieldProperty)
{
         _.forEach(dbFields, function (field, ix) {
             res.line('new JdbcTypeField(' +
                 'Types.' + field.databaseType + ', ' + '"' + field.databaseName + '", ' +
-                field.javaType + '.class, ' + '"' + field.javaName + '"'+ ')' + (ix <
lastIx ? ',' : ''));
+                res.importClass(field.javaType) + '.class, ' + '"' + field.javaName + '"'+
')' + (ix < lastIx ? ',' : ''));
         });
 
         res.endBlock(');');


Mime
View raw message