You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IllegalArgumentException: The first parameter to a Cypher based method must be a statement. Object of class [java.lang.String] must be an instance of interface org.neo4j.cypherdsl.core.Statement
at CypherdslBasedQuery:80
The text was updated successfully, but these errors were encountered:
michael-simons
changed the title
Derived finder recognized as CypherDSL statement queryNeo4jQueryMethod checks whether a method belongs to a CypherDSL statement executor or not are to weak.
May 26, 2021
…statement executor.
This changes uses Spring's ClassUtils to test whether a specific method
belongs to `CypherdslStatementExecutor` or
`ReactiveCypherdslStatementExecutor` as criteria if it needs to be
executed as a `CypherdslBasedQuery` or not.
Before this only the declaring class was checked which is not enough, as
this will prevent all derived query methods from working in a repository
that extends `CypherdslStatementExecutor`.
This fixes#2261.
The deep scanning by `ClassUtils` whether a class has a given method triggers type resolution of some reactive types that might not be present in non-reactive applications. Therefore the check must be separated for imperative and reactive code paths.
The deep scanning by `ClassUtils` whether a class has a given method triggers type resolution of some reactive types that might not be present in non-reactive applications. Therefore the check must be separated for imperative and reactive code paths.
with
throws
The text was updated successfully, but these errors were encountered: