2125 Commits

Author SHA1 Message Date
Gerrit Meier
cba0379875 Use different driver method in testing to ensure driver is usable.
The `verifyConnectivity` method only ensures an exception if we are using the bolt scheme. Using the neo4j scheme will run into an uncertain state and report the driver as usable.

Signed-off-by: Gerrit Meier <meistermeier@gmail.com>
2025-06-17 09:00:37 +02:00
Michael J. Simons
62d0dc4fb4 build: Fix ci checkstyle profile. 2025-06-04 20:03:09 +02:00
Michael Simons
4010b1dfc4 chore: Align formatting with Spring Framework and Spring Boot. (#3017)
We use the Spring Formatter already in many Neo4j projects and are quite happy with it.

It feels natural to use it with a Spring project, too. We take the opportunity to apply the formatter to the upcoming 8.0.x release. We think that the now increased difficulty of back porting things to the 7.x lines is outweighed by the better format and the simpler tooling.

Signed-off-by: Michael Simons <michael@simons.ac>
2025-06-04 15:26:50 +02:00
Michael Simons
7fcacb7991 refactor: Migrate to JSpecify annotations for nullability constraints. (#3016)
Replaces all deprecated Spring annotations with JSpecify annotations, and includes a full refactor so that the parent build profile `-Pnullaway` compiles and works proper.

Closes #2987

Signed-off-by: Michael Simons <michael@simons.ac>
2025-06-03 06:57:22 +02:00
Michael Simons
a4efefa61f build: Remove self-managed, dated plugin versions.
Those are all managed by `spring-data-parent` in more recent versions.

Signed-off-by: Michael Simons <michael@simons.ac>
2025-06-02 17:08:37 +02:00
Michael Simons
3787ddd9e8 fix: Use parameter to assign vector field. 2025-06-02 14:05:06 +02:00
Michael Simons
1a00179de4 build: Fix version sniffing during tests for newer versions of Neo4j. 2025-05-28 17:24:35 +02:00
Gerrit Meier
152106e1ff Adjust the deprecation pattern for filtering.
With 2025.04 the message regarding deprecated `id` has changed
and will now not be matched by the previous pattern anymore.
This change adjusts the pattern to match old and new style.

Signed-off-by: Gerrit Meier <meistermeier@gmail.com>
2025-05-23 13:47:48 +02:00
Mark Paluch
1d8253ca53 After release cleanups.
See #3007
2025-05-16 14:18:48 +02:00
Mark Paluch
46c4bc476a Prepare next development iteration.
See #3007
2025-05-16 14:18:46 +02:00
Mark Paluch
91cebff5b8 Release version 8.0 M3 (2025.1.0).
See #3007
2025-05-16 14:16:17 +02:00
Mark Paluch
522aa17c2e Prepare 8.0 M3 (2025.1.0).
See #3007
2025-05-16 14:15:56 +02:00
Mark Paluch
4114c4732b Update build trigger.
See #3007
2025-05-16 12:32:28 +02:00
Mark Paluch
a5352daff2 Move off deprecated RepositoryFactorySupport.getEntityInformation(Class) method.
EntityInformation is typically obtained in the context of RepositoryMetadata, hence aligning with deprecations in commons.

Closes #3010
2025-05-13 14:18:52 +02:00
Mark Paluch
c87e0cf3e5 Update CI Properties.
See #3007
2025-05-12 09:33:17 +02:00
Mark Paluch
19538dfed8 Update CI Properties.
See #3007
2025-05-12 08:54:44 +02:00
Gerrit Meier
03c4628dc8 GH-3003 - Add vector type support.
This commit combines Spring Data Commons' Vector type
with the Neo4j vector functionality.
Fields defined as Spring Data Commons `Vector` will get
persisted through the `setNodeVectorProperty` procedure.

Closes #3003

Signed-off-by: Gerrit Meier <meistermeier@gmail.com>
2025-05-05 11:05:12 +02:00
Gerrit Meier
9dbaa4855b Upgrade Neo4j Java driver to 5.28.5. 2025-04-28 10:17:15 +02:00
Mark Paluch
058206b79c After release cleanups.
See #2991
2025-04-22 14:32:04 +02:00
Mark Paluch
d58ddec4bb Prepare next development iteration.
See #2991
2025-04-22 14:32:03 +02:00
Mark Paluch
6d8a454151 Release version 8.0 M2 (2025.1.0).
See #2991
2025-04-22 14:29:38 +02:00
Mark Paluch
3544d32c21 Prepare 8.0 M2 (2025.1.0).
See #2991
2025-04-22 14:29:21 +02:00
Michael Simons
92ff35ac54 build(deps): Upgrade Neo4j Java driver to 5.28.4.
Signed-off-by: Michael Simons <michael@simons.ac>
2025-03-24 11:52:56 +01:00
Michael Simons
507e593be9 build(deps): Upgrade Cypher-DSL to 2024.5.1. 2025-03-24 11:52:56 +01:00
Michael Simons
ee7093270e refactor: Remove usage of Cypher-DSL driver integrations.
Signed-off-by: Michael Simons <michael@simons.ac>
2025-03-24 11:46:19 +01:00
Marcel Körtgen
0bedafb831 fix: use readonly transaction template where possible, #2953
Signed-off-by: Gerrit Meier <meistermeier@gmail.com>
Signed-off-by: Marcel Körtgen <marcel.koertgen@gmail.com>
2025-03-18 15:25:23 +01:00
Gerrit Meier
4092c566c0 Upgrade Neo4j Java Driver to 5.28.3.
Signed-off-by: Gerrit Meier <meistermeier@gmail.com>
2025-03-12 09:35:39 +01:00
Gerrit Meier
0efb2dc7cd Upgrade Neo4j Java Driver to 5.28.2.
Signed-off-by: Gerrit Meier <meistermeier@gmail.com>
2025-03-04 08:43:55 +01:00
Michael Simons
9d589c900b Upgrade Cypher-DSL to 2024.5.0.
This provides the option for users to be able to use the latest Neo4j dialect, that will be safe with future Neo4j versions.

Signed-off-by: Michael Simons <michael@simons.ac>
2025-02-25 15:52:45 +01:00
Michael Simons
3e8505169c fix: Bump CI version of Neo4j to trigger a specific deprecation warning. 2025-02-24 10:47:27 +01:00
Michael Simons
9d6a80142a feat: Suppress logging of deprecation warning for id() by default.
Signed-off-by: Michael Simons <michael@simons.ac>
2025-02-18 11:23:48 +01:00
Michael Simons
9b1bce5c4b build(deps): Remove superflous classgraph dependency.
Was a leftover from a time when SDN used Neo4j-OGM.

Signed-off-by: Michael Simons <michael@simons.ac>
2025-02-10 11:55:52 +01:00
Michael Simons
ce8ed49fad build(deps): Upgrade Neo4j to 4.4.41.
Signed-off-by: Michael Simons <michael@simons.ac>
2025-02-10 11:55:51 +01:00
Michael Simons
24083383ae build(deps): Upgrade Neo4j Migrations to 2.15.2.
Signed-off-by: Michael Simons <michael@simons.ac>
2025-02-10 11:55:51 +01:00
Michael Simons
87e15a0e51 build(deps): Upgrade Neo4j Java driver to 5.28.1.
Signed-off-by: Michael Simons <michael@simons.ac>
2025-02-10 11:55:51 +01:00
Gerrit Meier
487cb3fdad Fix formatting in documentation.
There was italic formatting in the Cypher examples
where there should have been visible underscores.

Signed-off-by: Gerrit Meier <meistermeier@gmail.com>
(cherry picked from commit e023d23ae9)
2025-02-06 08:48:53 +01:00
Michael Simons
56d049d894 feature: Allow Cypher LIST<ANY> to be used directly as repository methods returning collections.
Signed-off-by: Michael Simons <michael@simons.ac>
2025-01-30 16:37:38 +01:00
Michael Simons
c2cbc473bf refactor(test): Stabilize a couple of tests (especially the ones using _a_ shortest path).
Signed-off-by: Michael Simons <michael@simons.ac>
2025-01-28 12:26:21 +01:00
Michael Simons
ee01516474 refactor: Use SchemaNames to escape and sanitze labels used in SpEL.
Signed-off-by: Michael Simons <michael@simons.ac>
2025-01-28 09:37:55 +01:00
Michael Simons
82c4f69b88 fix(test): Expected database message changed.
Signed-off-by: Michael Simons <michael@simons.ac>
2025-01-28 09:37:55 +01:00
yangyaofei
349d640250 GH-2973: Persist type information on relationship properties (#2974)
Add an optional parameter to `@RelationshipProperties` that allows
users to persist the type information on this relationship.
This will allow SDN to detect the right class it needs to instantiate
if, due to abstraction of the implementation, no other information is available.

Closes #2973

Signed-off-by: 杨耀飞 <yangyaofei@gmail.com>
Signed-off-by: yangyaofei <yangyaofei@gmail.com>
Signed-off-by: Gerrit Meier <meistermeier@gmail.com>
Co-authored-by: Gerrit Meier <meistermeier@gmail.com>
(cherry picked from commit 7490d99096)
2025-01-27 12:37:07 +01:00
Christoph Strobl
74c6e30676 After release cleanups.
See #2971
2025-01-24 10:53:11 +01:00
Christoph Strobl
fbec59fe48 Prepare next development iteration.
See #2971
2025-01-24 10:53:10 +01:00
Christoph Strobl
ef2d02593d Release version 8.0 M1 (2025.1.0).
See #2971
2025-01-24 10:48:55 +01:00
Christoph Strobl
c5ccbd924d Prepare 8.0 M1 (2025.1.0).
See #2971
2025-01-24 10:47:59 +01:00
Mark Paluch
5e06bdc82f Adopt to deprecation removals in Commons.
Closes #2972
2025-01-14 15:12:57 +01:00
Mark Paluch
190bd4bbbc After release cleanups.
See #2971
2025-01-14 15:12:57 +01:00
Mark Paluch
a19d9b1736 Prepare next development iteration.
See #2971
2025-01-14 15:12:57 +01:00
Michael Simons
a6d15d2358 build(deps): Upgrade Neo4j to 4.4.39.
Signed-off-by: Michael Simons <michael@simons.ac>
2025-01-14 15:06:48 +01:00
Michael Simons
e44a971b02 build(deps): Upgrade Neo4j Migrations to 2.15.1.
Signed-off-by: Michael Simons <michael@simons.ac>
2025-01-14 15:06:48 +01:00