diff --git a/pom.xml b/pom.xml
index 6e2968f66..b3e482c40 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
org.springframework.boot
spring-boot-starter-parent
- 3.2.4
+ 3.2.5
termit
@@ -24,45 +24,15 @@
true
-
- central-snapshots
- https://oss.sonatype.org/content/repositories/snapshots
-
- false
-
-
- true
-
-
-
-
- kbss
- https://kbss.felk.cvut.cz/m2repo
-
- true
-
-
-
- central-snapshots
- https://oss.sonatype.org/content/repositories/snapshots
-
- false
-
-
- true
-
-
-
17
2.7.0
1.5.5.Final
2.2.0
- 2.0.1-SNAPSHOT
+ 2.0.0
0.14.3
- 1.9.20
DEV
@@ -142,14 +112,14 @@
org.eclipse.rdf4j
rdf4j-rio-rdfxml
- 4.3.8
+ 4.3.11
com.github.ledsoft
jopa-spring-transaction
- 0.3.0-SNAPSHOT
+ 0.3.0
@@ -196,6 +166,10 @@
httpclient5
5.2.1
+
+ org.aspectj
+ aspectjrt
+
@@ -473,13 +447,6 @@
true
-
-
- org.aspectj
- aspectjtools
- ${org.aspectj.version}
-
-
main
diff --git a/src/main/java/cz/cvut/kbss/termit/aspect/ChangeTrackingAspect.java b/src/main/java/cz/cvut/kbss/termit/aspect/ChangeTrackingAspect.java
index 348f8ef31..241b25f46 100644
--- a/src/main/java/cz/cvut/kbss/termit/aspect/ChangeTrackingAspect.java
+++ b/src/main/java/cz/cvut/kbss/termit/aspect/ChangeTrackingAspect.java
@@ -46,7 +46,7 @@ public class ChangeTrackingAspect {
@Autowired
private ChangeTrackingHelperDao helperDao;
- @Pointcut(value = "execution(public void persist(..)) && target(cz.cvut.kbss.termit.persistence.dao.GenericDao) " +
+ @Pointcut(value = "execution(public void persist(..)) && (target(cz.cvut.kbss.termit.persistence.dao.BaseAssetDao)) " +
"&& @args(cz.cvut.kbss.termit.model.changetracking.Audited)")
public void persistOperation() {
}
@@ -56,7 +56,7 @@ public void persistOperation() {
public void persistTermOperation() {
}
- @Pointcut(value = "execution(public * update(..)) && target(cz.cvut.kbss.termit.persistence.dao.GenericDao) " +
+ @Pointcut(value = "execution(public * update(..)) && target(cz.cvut.kbss.termit.persistence.dao.BaseAssetDao) " +
"&& @args(cz.cvut.kbss.termit.model.changetracking.Audited)")
public void updateOperation() {
}
diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/ResourceDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/ResourceDaoTest.java
index fe22efecf..4a96ae7c4 100644
--- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/ResourceDaoTest.java
+++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/ResourceDaoTest.java
@@ -236,9 +236,9 @@ void detachDetachesInstanceFromPersistenceContext() {
transactional(() -> {
final Resource toDetach = sut.find(resource.getUri()).get();
- assertTrue(sut.em.contains(toDetach));
+ assertTrue(em.contains(toDetach));
sut.detach(toDetach);
- assertFalse(sut.em.contains(toDetach));
+ assertFalse(em.contains(toDetach));
});
}
@@ -247,9 +247,9 @@ void detachDoesNothingForNonManagedInstance() {
final Resource resource = Generator.generateResourceWithId();
transactional(() -> {
- assertFalse(sut.em.contains(resource));
+ assertFalse(em.contains(resource));
sut.detach(resource);
- assertFalse(sut.em.contains(resource));
+ assertFalse(em.contains(resource));
});
}