The derived query is mapped to a cypher statement which due to a shortcoming in 
the lucene query parser cannot deal with indexed numeric values.

Either index your data with @Indexed(..., numeric=false) or use the 
repository-method findByPropertyValue which does an internal conversion.

HTH

Michael

Am 22.12.2013 um 23:38 schrieb [email protected]:

> I have a field called stuckId (annotated with @indexed) in the @NodeEntity 
> Class, for which I have a method called "findByStuckId(int id)" in the 
> GraphRepository Class.
> 
> When I try to retrieve the object by calling the findByStuckId(int id) I get 
> a NullPointer Exception, however if I use "findByPropertyValue("stuckId", id) 
> instead, it works!
> 
> All other derived query methods seem to work except this.
> 
> Could this be a possible bug? 
> 
> Neo4j Maven Artefacts: 
> 
> <neo4j-server-version>2.0.0-M04</neo4j-server-version>
> <spring-data-neo4j-rest-version>2.3.3.RELEASE</spring-data-neo4j-rest-version>
>         
> <spring-data-neo4j-version>2.3.3.RELEASE</spring-data-neo4j-version>
> 
> 
> -- 
> 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/groups/opt_out.

-- 
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/groups/opt_out.

Reply via email to