Skip to content

Commit

Permalink
Update queries for Neo4j v5
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanPirnbaum committed Feb 1, 2024
1 parent a74feee commit 3c848ee
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
11 changes: 5 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jqassistant.plugin</groupId>
<artifactId>parent</artifactId>
<version>2.0.0</version>
<version>2.1.0-M1</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -52,11 +52,10 @@
</scm>

<properties>
<jqa-java-plugin.version>2.0.0</jqa-java-plugin.version>
<jqa-plugin-common.version>2.0.0</jqa-plugin-common.version>
<org.springframework.version>5.3.2</org.springframework.version>
<org.springframework.boot_version>2.4.1</org.springframework.boot_version>
<org.springframework.data_version>2.4.2</org.springframework.data_version>
<jqa-java-plugin.version>2.1.0-M1</jqa-java-plugin.version>
<jqa-plugin-common.version>2.1.0-M1</jqa-plugin-common.version>
<org.springframework.boot_version>3.2.2</org.springframework.boot_version>
<org.springframework.data_version>3.2.2</org.springframework.data_version>
<javax.transaction.transaction-api_version>1.3</javax.transaction.transaction-api_version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@
WHERE NOT (
artifact:Test
OR type:Generated
OR (exists(field.final) AND field.final = true)
OR (exists(field.synthetic) AND field.synthetic) // synthetic fields, e.g. generated by Groovy
OR (field.final IS NOT NULL AND field.final = true)
OR (field.synthetic IS NOT NULL AND field.synthetic) // synthetic fields, e.g. generated by Groovy
)
RETURN
type AS Type, field AS Field
Expand Down Expand Up @@ -191,7 +191,7 @@
OR method:Constructor // method is a constructor
OR method:PostConstruct
OR method:PreDestroy
OR (exists(field.synthetic) AND field.synthetic) // synthetic fields, e.g. generated by Groovy
OR (field.synthetic IS NOT NULL AND field.synthetic) // synthetic fields, e.g. generated by Groovy
)
RETURN
injectable as Injectable, writes as WriteToInjectableField, field as Field
Expand Down Expand Up @@ -322,7 +322,7 @@
artifact:Test
or t:Generated
or t:Spring:Injectable
or exists(f.synthetic) // exclude synthetic inner class field referencing the outer class
or f.synthetic IS NOT NULL // exclude synthetic inner class field referencing the outer class
)
WITH
t, collect(DISTINCT fType.fqn) AS fields
Expand All @@ -331,7 +331,7 @@
WITH
t, fields, count(DISTINCT injectableImpl) AS injectableImplCnt
WHERE
NOT exists(t.abstract) OR injectableImplCnt = 0
NOT t.abstract IS NOT NULL OR injectableImplCnt = 0
RETURN
t AS NonInjectableHavingInjectablesAsField, fields AS Fields
]]></cypher>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
(transactionalClass)-[:DECLARES]->(transactionalMethod:Method)
WHERE NOT (
transactionalMethod:Constructor
or (exists(transactionalMethod.static) and transactionalMethod.static)
or (transactionalMethod.static IS NOT NULL and transactionalMethod.static)
)
SET
transactionalMethod:Spring:Transactional
Expand Down

0 comments on commit 3c848ee

Please sign in to comment.