Hello,
If you look at the source code for @Query here:
https://github.com/spring-projects/spring-data-neo4j/blob/4.0/spring-data-neo4j/src/main/java/org/springframework/data/neo4j/annotation/Query.java
you will see the following:
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@QueryAnnotation
@Documented
public @interface Query {
It states that the annotation will work only when applied to methods.
However in SDN 4.0.0M1 the @Query annotation only applies to method. It is
>> written in the documentation that this works for repository methods,
>> however nothing is mentioned about using the @Query annotation.
>>
>> Does SDN support such a thing?
>>
>> If the answer is no, I guess I can make it work in one query with Cypher
>> (getting the agency and the count of agency members), but then how to map
>> it back to a proper SDN entity?
>>
>> Kind Regards,
>> Leward
>>
>
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.