diff --git a/core-js/pom.xml b/core-js/pom.xml index a64965bf..84e1398a 100644 --- a/core-js/pom.xml +++ b/core-js/pom.xml @@ -9,7 +9,7 @@ org.wisemapping wisemapping ../pom.xml - 4.0.5-SNAPSHOT + 5.0.0-SNAPSHOT scm:git:git@bitbucket.org:wisemapping/wisemapping-open-source.git diff --git a/distribution/docker-conf/app.properties b/distribution/docker-conf/app.properties index db8ada22..9620b810 100644 --- a/distribution/docker-conf/app.properties +++ b/distribution/docker-conf/app.properties @@ -2,25 +2,44 @@ # Database Configuration ################################################################################## -# MySQL 5.X configuration properties -database.url=jdbc:mysql://localhost/wisemapping?useUnicode=yes&characterEncoding=UTF-8 -database.driver=com.mysql.jdbc.Driver -database.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect +# MariaDB configuration properties +database.url=jdbc:mariadb://localhost/wisemapping?useUnicode=yes&characterEncoding=UTF-8 +database.driver=org.mariadb.jdbc.Driver +database.hibernate.dialect=org.hibernate.dialect.MariaDBDialect database.username=wisemapping -database.password=password +database.password=mappingwise database.validation.enabled=true database.validation.query=SELECT 1 -## PostgreSQL configuration properties -#database.url=jdbc:postgresql:///wisemapping -#database.driver=org.postgresql.Driver -#database.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect -#database.username= -#database.password= +# MySQL 5.X configuration properties +#database.url=jdbc:mysql://localhost/wisemapping?useUnicode=yes&characterEncoding=UTF-8 +#database.driver=com.mysql.jdbc.Driver +#database.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect +#database.username=wisemapping +#database.password=password #database.validation.enabled=true +#database.validation.query=SELECT 1 + + +## PostgreSQL configuration properties +#database.url=jdbc:mariadb://localhost:3306/wisemapping +#database.driver=org.mariadb.jdbc.Driver +#database.hibernate.dialect=org.hibernate.dialect.MariaDBDialect +#database.username=wisemapping +#database.password=password #database.validation.query= #database.validation.enabled=false + +# HSQL Configuration properties +#database.url=jdbc:hsqldb:file:${database.base.url}/db/wisemapping +#database.driver=org.hsqldb.jdbc.JDBCDriver +#database.hibernate.dialect=org.hibernate.dialect.HSQLDialect +#database.username=sa +#database.password= +#database.validation.enabled=false +#database.validation.query= + ################################################################################## # Mail configuration. Must be configured to enable user registration confirmation. ################################################################################## @@ -135,13 +154,7 @@ security.openid.enabled=false # # This properties are used for REST API Documentation( http://localhost:8080/wisemapping/doc/rest/index.html) # Change the URL for proper documentation console setup. -documentation.services.basePath=http://localhost:8080/wisemapping/service +documentation.services.basePath=http://localhost:8080/service documentation.services.version=3.0.1 - - - - - - diff --git a/mindplot/pom.xml b/mindplot/pom.xml index 137b3e8d..6ad88e9b 100644 --- a/mindplot/pom.xml +++ b/mindplot/pom.xml @@ -9,7 +9,7 @@ org.wisemapping wisemapping ../pom.xml - 4.0.5-SNAPSHOT + 5.0.0-SNAPSHOT diff --git a/pom.xml b/pom.xml index 09c0b704..25e2cbd6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> - 4.0.5-SNAPSHOT + 5.0.0-SNAPSHOT ${project.basedir}/wise-webapps @@ -16,7 +16,7 @@ org.wisemapping wisemapping WiseMapping Project - 4.0.5-SNAPSHOT + 5.0.0-SNAPSHOT pom @@ -77,7 +77,7 @@ org.jvnet.jaxb2.maven2 maven-jaxb2-plugin - 0.8.1 + 0.14.0 net.alchim31.maven @@ -117,10 +117,10 @@ org.apache.maven.plugins maven-compiler-plugin - 3.1 + 3.8.0 - 1.8 - 1.8 + 11 + 11 UTF-8 diff --git a/web2d/pom.xml b/web2d/pom.xml index 732c81a6..87166f03 100644 --- a/web2d/pom.xml +++ b/web2d/pom.xml @@ -9,7 +9,7 @@ org.wisemapping wisemapping ../pom.xml - 4.0.5-SNAPSHOT + 5.0.0-SNAPSHOT diff --git a/wise-editor/pom.xml b/wise-editor/pom.xml index a1a1ec4a..3aea50d7 100644 --- a/wise-editor/pom.xml +++ b/wise-editor/pom.xml @@ -9,7 +9,7 @@ org.wisemapping wisemapping ../pom.xml - 4.0.5-SNAPSHOT + 5.0.0-SNAPSHOT diff --git a/wise-webapp/pom.xml b/wise-webapp/pom.xml index f8af1bf3..e3a77d26 100644 --- a/wise-webapp/pom.xml +++ b/wise-webapp/pom.xml @@ -9,7 +9,7 @@ org.wisemapping wisemapping ../pom.xml - 4.0.5-SNAPSHOT + 5.0.0-SNAPSHOT @@ -28,8 +28,9 @@ - 3.2.18.RELEASE - 3.2.10.RELEASE + 5.2.10.RELEASE + 5.2.5.RELEASE + 5.4.23.Final @@ -56,7 +57,7 @@ org.apache.velocity velocity - 1.5 + 1.7 compile @@ -101,6 +102,25 @@ ${org.springframework.version} compile + + + org.hibernate + hibernate-core + ${hibernate.version} + + + + + org.hibernate + hibernate-validator + 6.0.21.Final + + + org.springframework + spring-orm + ${org.springframework.version} + compile + org.springframework spring-context @@ -122,7 +142,7 @@ org.apache.xmlgraphics fop - 2.3 + 2.4 org.springframework @@ -145,7 +165,7 @@ org.apache.tiles tiles-jsp - 2.2.2 + 3.0.8 runtime @@ -190,18 +210,6 @@ ${org.springframework.version} runtime - - org.hibernate - hibernate-entitymanager - 3.6.0.Final - runtime - - - org.hibernate - hibernate-core - 3.6.0.Final - compile - aopalliance aopalliance @@ -228,7 +236,7 @@ javax javaee-api - 6.0 + 8.0.1 provided @@ -239,13 +247,13 @@ mysql mysql-connector-java - 5.1.5 + 8.0.22 runtime commons-dbcp commons-dbcp - 1.2.2 + 1.4 runtime @@ -264,19 +272,13 @@ org.hsqldb hsqldb - 2.2.8 + 2.5.1 runtime - org.codehaus.jackson - jackson-core-asl - 1.9.4 - - - org.codehaus.jackson - jackson-mapper-asl - 1.9.4 - compile + com.fasterxml.jackson.core + jackson-databind + 2.11.3 org.slf4j @@ -290,6 +292,26 @@ 2.10.0 compile + + javax.xml.bind + jaxb-api + 2.3.1 + + + org.glassfish.jaxb + jaxb-runtime + 2.3.1 + + + com.sun.xml.bind + jaxb-core + 2.3.0 + + + org.jacoco + jacoco-maven-plugin + 0.8.5 + org.jsoup @@ -311,6 +333,11 @@ jstl 1.2 + + javax.servlet + servlet-api + 2.5 + org.apache.httpcomponents fluent-hc @@ -567,11 +594,9 @@ org.eclipse.jetty jetty-maven-plugin - 9.4.12.v20180830 + 9.4.34.v20201102 - false foo - true 9999 ${project.build.directory}/wisemapping.war automatic @@ -595,14 +620,15 @@ - start-jetty + run-forked pre-integration-test - run + run-forked 0 - true + false + -Ddatabase.base.url=${project.build.directory} diff --git a/wise-webapp/src/main/java/com/wisemapping/dao/LabelManagerImpl.java b/wise-webapp/src/main/java/com/wisemapping/dao/LabelManagerImpl.java index 54ded25a..e241b043 100644 --- a/wise-webapp/src/main/java/com/wisemapping/dao/LabelManagerImpl.java +++ b/wise-webapp/src/main/java/com/wisemapping/dao/LabelManagerImpl.java @@ -1,10 +1,27 @@ +/* + * Copyright [2015] [wisemapping] + * + * Licensed under WiseMapping Public License, Version 1.0 (the "License"). + * It is basically the Apache License, Version 2.0 (the "License") plus the + * "powered by wisemapping" text requirement on every single page; + * you may not use this file except in compliance with the License. + * You may obtain a copy of the license at + * + * http://www.wisemapping.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.wisemapping.dao; import com.wisemapping.model.Label; import com.wisemapping.model.User; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.springframework.orm.hibernate3.support.HibernateDaoSupport; +import org.springframework.orm.hibernate5.support.HibernateDaoSupport; import java.util.List; @@ -18,27 +35,34 @@ public class LabelManagerImpl extends HibernateDaoSupport @Override public void saveLabel(@NotNull final Label label) { - getSession().save(label); + currentSession().save(label); } @NotNull @Override + @SuppressWarnings("unchecked") public List