diff --git a/license.md b/LICENSE.md similarity index 100% rename from license.md rename to LICENSE.md diff --git a/README.md b/README.md index edd935e8..661ac4d2 100644 --- a/README.md +++ b/README.md @@ -96,5 +96,5 @@ After credential was created, Google will show you the clientId and clientSecret ## License The source code is Licensed under the WiseMapping Open License, Version 1.0 (the “License”); -You may obtain a copy of the License at: [https://bitbucket.org/wisemapping/wisemapping-open-source/src/develop/license.md](https://bitbucket.org/wisemapping/wisemapping-open-source/src/develop/license.md) +You may obtain a copy of the License at: [https://bitbucket.org/wisemapping/wisemapping-open-source/src/develop/license.md](https://bitbucket.org/wisemapping/wisemapping-open-source/src/develop/LICENSE.md) diff --git a/wise-webapp/pom.xml b/wise-webapp/pom.xml index a4bcb176..26ff41f8 100644 --- a/wise-webapp/pom.xml +++ b/wise-webapp/pom.xml @@ -2,24 +2,19 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 wise-webapp + war WiseMapping Webapp http://www.wisemapping.org - 5.1.0-SNAPSHOT - - org.springframework.boot - spring-boot-starter-parent - 3.1.2 + org.wisemapping + wisemapping + ../pom.xml + 5.1.0-SNAPSHOT - 5.1.0-SNAPSHOT - 17 - 17 - 6.0.11 + 6.0.13 6.1.2 - 6.2.6.Final - 6.0.21.Final 6.0.2 @@ -36,27 +31,6 @@ 1.7 compile - - org.springframework.boot - spring-boot-starter-web - - - org.springframework.boot - spring-boot-starter-tomcat - - - org.springframework.boot - spring-boot-starter-security - - - org.springframework.boot - spring-boot-starter-data-jpa - - - org.springframework.boot - spring-boot-starter-mail - - org.testng testng @@ -69,33 +43,39 @@ 12.0 compile - - - - - - - - - - + + org.springframework + spring-webmvc + ${org.springframework.version} + compile + + + org.springframework + spring-messaging + ${org.springframework.version} + + + org.springframework + spring-websocket + ${org.springframework.version} + org.postgresql postgresql 42.5.4 - - - - - - - - - - - - + + org.springframework + spring-beans + ${org.springframework.version} + compile + + + org.springframework + spring-tx + ${org.springframework.version} + compile + org.springframework.security spring-security-taglibs @@ -104,14 +84,14 @@ org.hibernate - hibernate-core-jakarta - 5.6.15.Final + hibernate-core + 6.1.7.Final jakarta.xml.bind jakarta.xml.bind-api - 4.0.0 + 4.0.1 @@ -121,72 +101,78 @@ 8.0.1.Final - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + org.springframework + spring-orm + ${org.springframework.version} + compile + + + org.springframework + spring-context + ${org.springframework.version} + compile + + + org.springframework + spring-web + ${org.springframework.version} + compile + + + org.springframework + spring-oxm + ${org.springframework.version} + compile + + + org.springframework + spring-context-support + ${org.springframework.version} + compile + + + org.springframework.data + spring-data-jpa + 3.1.0 + + + org.springframework + spring-test + 6.0.6 + test + - - - - - - - - - - - - - - - - - - - - - - - - + + org.springframework + spring-aop + ${org.springframework.version} + runtime + + + org.springframework.security + spring-security-web + ${org.springframework.addons} + compile + + + org.springframework.security + spring-security-core + ${org.springframework.addons} + compile + + + org.springframework + spring-jdbc + ${org.springframework.version} + runtime + + + aopalliance + aopalliance + 1.0 + compile + jakarta.mail jakarta.mail-api @@ -197,26 +183,16 @@ mysql-connector-j 8.1.0 - - - - - + + org.apache.commons + commons-dbcp2 + 2.9.0 + org.eclipse.angus jakarta.mail 2.0.2 - - - - - - - - - - org.apache.logging.log4j log4j-core @@ -305,9 +281,10 @@ org.hsqldb hsqldb - 2.7.2 + 2.7.1 + drop-schemas @@ -419,8 +396,6 @@ - - org.apache.maven.plugins maven-surefire-plugin 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 b9bd4f64..01012bc8 100644 --- a/wise-webapp/src/main/java/com/wisemapping/dao/LabelManagerImpl.java +++ b/wise-webapp/src/main/java/com/wisemapping/dao/LabelManagerImpl.java @@ -19,14 +19,21 @@ package com.wisemapping.dao; import com.wisemapping.model.Label; import com.wisemapping.model.User; +import jakarta.annotation.Resource; +import org.hibernate.Session; +import org.hibernate.SessionFactory; +import org.hibernate.query.SelectionQuery; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.springframework.orm.hibernate5.support.HibernateDaoSupport; +import org.springframework.stereotype.Repository; import java.util.List; -public class LabelManagerImpl extends HibernateDaoSupport +@Repository +public class LabelManagerImpl implements LabelManager { + @Resource + private SessionFactory sessionFactory; @Override public void addLabel(@NotNull final Label label) { @@ -35,31 +42,37 @@ public class LabelManagerImpl extends HibernateDaoSupport @Override public void saveLabel(@NotNull final Label label) { - currentSession().save(label); + getSession().persist(label); + } + + private Session getSession() { + return sessionFactory.getCurrentSession(); } @NotNull @Override - @SuppressWarnings("unchecked") public List