diff --git a/cfg/DestinationDBHibernateDBManager.cfg.xml b/cfg/DestinationDBHibernateDBManager.cfg.xml new file mode 100644 index 0000000..8b2db9e --- /dev/null +++ b/cfg/DestinationDBHibernateDBManager.cfg.xml @@ -0,0 +1,20 @@ + + + + com.mysql.jdbc.Driver + org.hibernate.connection.C3P0ConnectionProvider + jdbc:mysql://146.48.87.169/timeseries + root + test + org.hibernate.dialect.MySQLDialect + org.hibernate.transaction.JDBCTransactionFactory + 0 + 0 + 1 + 1 + 0 + 1 + thread + + + diff --git a/src/main/java/org/gcube/dataaccess/algorithms/test/regressiontest/RegressionListSchemas.java b/src/main/java/org/gcube/dataaccess/algorithms/test/regressiontest/RegressionListSchemas.java index d2e1408..c40c805 100644 --- a/src/main/java/org/gcube/dataaccess/algorithms/test/regressiontest/RegressionListSchemas.java +++ b/src/main/java/org/gcube/dataaccess/algorithms/test/regressiontest/RegressionListSchemas.java @@ -68,11 +68,11 @@ public class RegressionListSchemas { // config.setParam("ResourceName", "CatalogOfLife2010"); // config.setParam("DatabaseName", "col2oct2010"); - config.setParam("ResourceName", "StatisticalManagerDataBase"); - config.setParam("DatabaseName", "testdb"); +// config.setParam("ResourceName", "StatisticalManagerDataBase"); +// config.setParam("DatabaseName", "testdb"); -// config.setParam("ResourceName", "TimeSeriesDatabase"); -// config.setParam("DatabaseName", "timeseries"); + config.setParam("ResourceName", "TimeSeriesDatabase"); + config.setParam("DatabaseName", "timeseries"); // config.setParam("ResourceName", "Geoserver database "); // config.setParam("DatabaseName", "aquamapsdb"); diff --git a/src/main/java/org/gcube/dataaccess/algorithms/test/regressiontest/RegressionSampleOnTable.java b/src/main/java/org/gcube/dataaccess/algorithms/test/regressiontest/RegressionSampleOnTable.java index 3a63115..8e96204 100644 --- a/src/main/java/org/gcube/dataaccess/algorithms/test/regressiontest/RegressionSampleOnTable.java +++ b/src/main/java/org/gcube/dataaccess/algorithms/test/regressiontest/RegressionSampleOnTable.java @@ -52,10 +52,12 @@ public class RegressionSampleOnTable { config.setAgent("SAMPLEONTABLE"); - config.setParam("ResourceName", "Geoserver database "); - config.setParam("DatabaseName", "aquamapsdb"); - config.setParam("SchemaName", "public"); - config.setParam("TableName", "SeaVoX_sea_areas_polygons_v14"); +// config.setParam("ResourceName", "Geoserver database "); +// config.setParam("DatabaseName", "aquamapsdb"); +// config.setParam("SchemaName", "public"); +// config.setParam("TableName", "biodiversity"); + +// config.setParam("TableName", "SeaVoX_sea_areas_polygons_v14"); // config.setParam("TableName", ""); // A test with a database postgres Geoserver @@ -78,9 +80,10 @@ public class RegressionSampleOnTable { // config.setParam("SchemaName", "public"); // config.setParam("TableNamefcatalog", "countrylanguage"); //mysql is not case sensitive -// config.setParam("ResourceName", "AquaMaps Service DataBase"); -// config.setParam("DatabaseName", "aquamapsorgupdated"); -// config.setParam("SchemaName", "public"); + config.setParam("ResourceName", "AquaMaps Service DataBase"); + config.setParam("DatabaseName", "aquamapsorgupdated"); + config.setParam("SchemaName", "public"); + config.setParam("TableName", "speciesoccursum"); //// config.setParam("TableName", "hspec2012_07_11_12_33_05_526"); // config.setParam("TableName", "hspen"); diff --git a/src/main/java/org/gcube/dataaccess/algorithms/test/regressiontest/RegressionSubmitQuery.java b/src/main/java/org/gcube/dataaccess/algorithms/test/regressiontest/RegressionSubmitQuery.java index 491dcd6..71914d8 100644 --- a/src/main/java/org/gcube/dataaccess/algorithms/test/regressiontest/RegressionSubmitQuery.java +++ b/src/main/java/org/gcube/dataaccess/algorithms/test/regressiontest/RegressionSubmitQuery.java @@ -121,19 +121,30 @@ public class RegressionSubmitQuery { // config.setParam("Query", "select lifestage from randomdrs"); - config.setParam("ResourceName", "AquaMaps Service DataBase"); - config.setParam("DatabaseName", "aquamapsorgupdated"); +// config.setParam("ResourceName", "AquaMaps Service DataBase"); +// config.setParam("DatabaseName", "aquamapsorgupdated"); +// config.setParam("Read-Only Query", "TRUE"); +// config.setParam("Apply Smart Correction", "FALSE"); +// config.setParam("Language", "NONE"); +//// config.setParam("Query", "select id from fmap.randomdrs limit 1"); +//// config.setParam("Query", "select * from (select * from maxminlat_hspen2012_02_28_17_45_49_572 as a join maxminlat_hspen2011_09_23_15_31_47_530 as b on a.maxclat=b.maxclat limit 2"); +// +//// config.setParam("Query", "select * from maxminlat_hspen2012_02_28_17_45_49_572 as a join maxminlat_hspen2011_09_23_15_31_47_530 as b on a.maxclat=b.maxclat limit 2"); +// +//// config.setParam("Query", "select * from hcaf_d_2018_linear_01341919234605 as a join hcaf_d_2024_linear_11341919235343 as b on a.csquarecode = b.csquarecode limit 1"); +// +// config.setParam("Query", "select * from hcaf_d_2018_linear_01341919234605 as a, hcaf_d_2024_linear_11341919235343 as b where a.csquarecode = b.csquarecode limit 1"); +// + + + config.setParam("ResourceName", "Geoserver database "); + config.setParam("DatabaseName", "aquamapsdb"); + config.setParam("SchemaName", "public"); config.setParam("Read-Only Query", "TRUE"); config.setParam("Apply Smart Correction", "FALSE"); config.setParam("Language", "NONE"); -// config.setParam("Query", "select id from fmap.randomdrs limit 1"); -// config.setParam("Query", "select * from (select * from maxminlat_hspen2012_02_28_17_45_49_572 as a join maxminlat_hspen2011_09_23_15_31_47_530 as b on a.maxclat=b.maxclat limit 2"); - -// config.setParam("Query", "select * from maxminlat_hspen2012_02_28_17_45_49_572 as a join maxminlat_hspen2011_09_23_15_31_47_530 as b on a.maxclat=b.maxclat limit 2"); - -// config.setParam("Query", "select * from hcaf_d_2018_linear_01341919234605 as a join hcaf_d_2024_linear_11341919235343 as b on a.csquarecode = b.csquarecode limit 1"); - - config.setParam("Query", "select * from hcaf_d_2018_linear_01341919234605 as a, hcaf_d_2024_linear_11341919235343 as b where a.csquarecode = b.csquarecode limit 1"); + config.setParam("Query", "select * from" +"\""+"SeaVoX_sea_areas_polygons_v14"+"\""+"limit 10"); +// config.setParam("Query", "select * from public.depthmean limit 10"); config.setGcubeScope("/gcube/devsec");